iamsly commited on
Commit
e827a95
·
verified ·
1 Parent(s): 67e6a49

opensquilla: deepseek-V4-flash/prompt_07_the_nineteenth_floor chunk 1/64

Browse files
Files changed (13) hide show
  1. .gitattributes +1 -0
  2. s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/artifacts.json +0 -0
  3. s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/events.jsonl +3 -0
  4. s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/manifest.json +48 -0
  5. s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/metadata.json +99 -0
  6. s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/prompts.json +24 -0
  7. s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/session-branch.json +0 -0
  8. s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/tools.json +2218 -0
  9. s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/workspace-state.json +4 -0
  10. s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/BOOTSTRAP.md +25 -0
  11. s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/HEARTBEAT.md +17 -0
  12. s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/USER.md +17 -0
  13. s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/assemble.py +107 -0
.gitattributes CHANGED
@@ -90,3 +90,4 @@ s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_na
90
  s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/tmp/a5_1.m4a filter=lfs diff=lfs merge=lfs -text
91
  s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/tmp/a5_2.m4a filter=lfs diff=lfs merge=lfs -text
92
  s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/tmp/a5_mix.m4a filter=lfs diff=lfs merge=lfs -text
 
 
90
  s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/tmp/a5_1.m4a filter=lfs diff=lfs merge=lfs -text
91
  s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/tmp/a5_2.m4a filter=lfs diff=lfs merge=lfs -text
92
  s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/tmp/a5_mix.m4a filter=lfs diff=lfs merge=lfs -text
93
+ s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/events.jsonl filter=lfs diff=lfs merge=lfs -text
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/artifacts.json ADDED
The diff for this file is too large to render. See raw diff
 
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/events.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ca9f1f864d2375a55847dfbaa3a83c44b013df78ef8d6e7468eec2e4b88e62b
3
+ size 35367268
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/manifest.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "traceSchema": "opensquilla-trajectory",
3
+ "schemaVersion": 1,
4
+ "generatedAt": "2026-08-24T12:03:10.240308",
5
+ "traceId": "8e9a2fad1664057960e4458a03b28ee5",
6
+ "sessionId": "8e9a2fad1664057960e4458a03b28ee5",
7
+ "sessionKey": "opensquilla:cli:video5cat_004",
8
+ "workspaceDir": "$WORKSPACE_DIR",
9
+ "eventCount": 398,
10
+ "sourceFiles": {
11
+ "transcripts": "$SCRATCH_DIR/.router_pipeline_internal/turn_*/transcript.jsonl",
12
+ "turnCalls": "$SCRATCH_DIR/.router_pipeline_internal/turn_*/turn-calls-*.jsonl",
13
+ "sample": "$RUNS_DIR/traces/<run_id>/samples/video5cat_004.json"
14
+ },
15
+ "supplementalFiles": [
16
+ "metadata.json",
17
+ "artifacts.json",
18
+ "prompts.json",
19
+ "tools.json",
20
+ "session-branch.json"
21
+ ],
22
+ "contents": [
23
+ {
24
+ "path": "artifacts.json",
25
+ "bytes": 446466
26
+ },
27
+ {
28
+ "path": "events.jsonl",
29
+ "bytes": 35367268
30
+ },
31
+ {
32
+ "path": "metadata.json",
33
+ "bytes": 2263
34
+ },
35
+ {
36
+ "path": "prompts.json",
37
+ "bytes": 32636
38
+ },
39
+ {
40
+ "path": "session-branch.json",
41
+ "bytes": 284546
42
+ },
43
+ {
44
+ "path": "tools.json",
45
+ "bytes": 62484
46
+ }
47
+ ]
48
+ }
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/metadata.json ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "traceSchema": "opensquilla-trajectory",
3
+ "schemaVersion": 1,
4
+ "generatedAt": "2026-08-24T12:03:10.240308",
5
+ "traceId": "8e9a2fad1664057960e4458a03b28ee5",
6
+ "sessionId": "8e9a2fad1664057960e4458a03b28ee5",
7
+ "sessionKey": "opensquilla:cli:video5cat_004",
8
+ "harness": {
9
+ "type": "opensquilla",
10
+ "name": "OpenSquilla",
11
+ "image": "router-osq:0.5.0rc2-sysskill",
12
+ "transport": "docker_cli",
13
+ "os": {
14
+ "platform": "linux",
15
+ "label": "docker router-osq:0.5.0rc2-sysskill"
16
+ },
17
+ "workspaceDir": "$WORKSPACE_DIR",
18
+ "videoCapability": {
19
+ "nativeTool": false,
20
+ "note": "Bundled short-drama / video-generation skills and the video_generate builtin were removed from the image. The only video affordance is the unified system skill 'video-generation', which documents the OpenRouter videos API and leaves the call to the agent.",
21
+ "systemSkill": "video-generation"
22
+ }
23
+ },
24
+ "model": {
25
+ "provider": "openrouter",
26
+ "name": "deepseek/deepseek-v4-flash-0731",
27
+ "declaredName": "deepseek/deepseek-v4-flash-0731",
28
+ "api": "openai-completions"
29
+ },
30
+ "media": {
31
+ "nativeVideoTool": null,
32
+ "videosApiMentions": 8609,
33
+ "toolCalls": {
34
+ "skill_view": {
35
+ "calls": 2,
36
+ "errors": 0
37
+ },
38
+ "audio_provider_capabilities": {
39
+ "calls": 1,
40
+ "errors": 0
41
+ },
42
+ "list_dir": {
43
+ "calls": 1,
44
+ "errors": 0
45
+ },
46
+ "exec_command": {
47
+ "calls": 68,
48
+ "errors": 0
49
+ },
50
+ "http_request": {
51
+ "calls": 1,
52
+ "errors": 0
53
+ },
54
+ "write_file": {
55
+ "calls": 20,
56
+ "errors": 0
57
+ },
58
+ "image_generate": {
59
+ "calls": 7,
60
+ "errors": 0
61
+ },
62
+ "read_file": {
63
+ "calls": 1,
64
+ "errors": 0
65
+ },
66
+ "background_process": {
67
+ "calls": 12,
68
+ "errors": 0
69
+ },
70
+ "process": {
71
+ "calls": 13,
72
+ "errors": 0
73
+ },
74
+ "edit_file": {
75
+ "calls": 10,
76
+ "errors": 0
77
+ },
78
+ "publish_artifact": {
79
+ "calls": 8,
80
+ "errors": 0
81
+ }
82
+ }
83
+ },
84
+ "contextCapture": {
85
+ "captured": true,
86
+ "source": "turn_call_log",
87
+ "capture_mode": "turn_call_log",
88
+ "n_llm_calls": 124,
89
+ "n_llm_requests": 124,
90
+ "n_llm_responses": 124,
91
+ "messages_bytes": 35589171,
92
+ "input_messages_stored": true,
93
+ "native_input_messages_captured": true,
94
+ "llm_calls_stored": true,
95
+ "native_tools": true,
96
+ "tools_observed": true,
97
+ "system_prompt_captured": true
98
+ }
99
+ }
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/prompts.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "traceSchema": "opensquilla-trajectory",
3
+ "schemaVersion": 1,
4
+ "generatedAt": "2026-08-24T12:03:10.240308",
5
+ "traceId": "8e9a2fad1664057960e4458a03b28ee5",
6
+ "sessionId": "8e9a2fad1664057960e4458a03b28ee5",
7
+ "sessionKey": "opensquilla:cli:video5cat_004",
8
+ "system": "## Product Identity\n\n- You are OpenSquilla, a provider-independent AI agent runtime assistant.\n- If asked who or what you are, identify as OpenSquilla. Treat the underlying model and provider as implementation details, not your identity.\n- The name OpenSquilla comes from *Squilla mantis* — the mantis shrimp. If you pick an emoji, mascot, or avatar for yourself, use 🦐. Do not use unrelated sea creatures such as 🐬 or 🐠.\n- Do not identify yourself as Claude, Anthropic, OpenAI, MiniMax, or any other underlying model/provider unless the user explicitly asks about the underlying model or provider.\n\n## Persona\n\n# SOUL.md\n\nUse this file for the agent's durable voice, tone, and interaction style.\n\nGood content:\n\n- preferred brevity or level of detail\n- directness, warmth, humor, or formality\n- boundaries for how the agent should sound in private or public contexts\n- collaboration style that should persist across sessions\n\nDo not store user profile facts, task history, or tool inventories here. Use\n`USER.md` for the user, `MEMORY.md` or `memory/**/*.md` for memory, and `TOOLS.md`\nfor tool notes.\n\nKeep this concise. Higher-priority system, developer, runtime, safety, and user\ninstructions always override this file.\n\nSOUL.md defines durable voice and persona guidance for this workspace. Treat it as style direction while still obeying higher-priority runtime, safety, and user instructions.\n\n## Available Tools\n\n- apply_patch\n- audio_provider_capabilities\n- background_process\n- create_csv\n- create_pdf_report\n- create_xlsx\n- cron\n- dubbing_download\n- dubbing_generate\n- dubbing_status\n- edit_file\n- exec_command\n- execute_code\n- feishu_chat_edit\n- feishu_chat_read\n- feishu_chat_reply\n- feishu_chat_send\n- feishu_doc_create\n- feishu_doc_list_blocks\n- feishu_doc_read_raw\n- feishu_drive_meta\n- feishu_drive_search\n- feishu_drive_upload_artifact\n- feishu_media_upload_artifact\n- feishu_perm_grant_member\n- feishu_scopes_status\n- feishu_wiki_get_node\n- feishu_wiki_list_nodes\n- feishu_wiki_list_spaces\n- gateway\n- git_commit\n- git_diff\n- git_log\n- git_status\n- glob_search\n- grep_search\n- http_request\n- image\n- image_generate\n- install_skill_deps\n- list_dir\n- memory_get\n- memory_search\n- meta_invoke\n- music_generate\n- pdf\n- process\n- publish_artifact\n- read_file\n- read_spreadsheet\n- router_control\n- session_search\n- session_status\n- sessions_history\n- sessions_list\n- skill_create\n- skill_delete\n- skill_edit\n- skill_install_community\n- skill_list\n- skill_search_community\n- skill_view\n- song_generate\n- tts\n- voice_clone\n- voice_convert\n- voice_search\n- web_discover\n- web_fetch\n- web_search\n- write_file\n\n## Tool Call Style\n\n- Before invoking a tool, send a brief user-visible note explaining what you are checking or changing and why.\n- Write tool preambles in the same language as the user's current conversation.\n- Only call tools when the task genuinely requires it.\n- Never fabricate tool results; always use the actual output.\n- If a tool fails, explain the error before retrying or adjusting.\n- Wait for tool results before continuing your response.\n\n## Web Research Tools\n\n- Prefer `web_search` when the user needs current information, source-backed answers, comparisons, release notes, prices, policy, news, or other answers that should cite sources. It returns deduplicated results and citation-ready excerpts.\n- Use `web_discover` for lightweight link discovery when snippets and URLs are enough, or when you plan to inspect a specific result separately.\n- Use `web_fetch` for a specific URL or when existing search excerpts are not enough; do not loop through search and fetch when `web_search` already returned sufficient citation-ready excerpts.\n## Generated File Delivery\n\n- When the user asks for a file-shaped deliverable such as a deck, PDF, report, spreadsheet, HTML page, image, document, or archive, create the file in the active workspace and call `publish_artifact` for the final file.\n- Do not paste full file source such as HTML, CSS, JavaScript, XML, JSON, CSV, base64, or OOXML into chat as a substitute for delivering the file unless the user explicitly asks for source code.\n- After publishing, include the local entry path from the tool result when it is available, especially for HTML apps, decks, PDFs, reports, documents, and archives. For multi-file apps, name the directory and the entry file, not only the bare filename. Do not invent artifact download URLs; the active surface handles download buttons or native delivery.\n- If a tool result already says the same file is registered, published, or delivered, do not call `publish_artifact` again for that same file; summarize briefly instead.\n- After `publish_artifact` succeeds for the requested deliverable, do not run more tools unless the user explicitly asked for another file or a specific verification step. Send the final response.\n\n## Data Accuracy\n\n- Use `read_spreadsheet` for CSV, TSV, or Excel files before summarizing rows, columns, totals, rankings, or filters.\n- Use `execute_code` for calculations, aggregation, sorting, filtering, counting, deduplication, and validation over multi-row or file-backed data.\n- Do not do spreadsheet arithmetic from visual inspection or memory. Treat the model as the planner/explainer and tools as the source of exact values.\n- Before writing final numbers, verify totals, averages, percentages, currency, top-N lists, and row counts against tool output.\n\n## Image Generation\n\n- To create a new image, you MUST call the `image_generate` tool. Never claim to have generated, drawn, or produced an image without actually invoking the tool.\n- For charts or plots of data you already have, prefer `execute_code` to render matplotlib/SVG output, then describe the file you produced.\n## Memory Recall\n\n- For user identity/profile questions such as name, preferred address, pronouns, timezone, or stable profile notes, first use injected `USER.md` when it contains the answer. Do not call `memory_search` for those questions when injected `USER.md` answers them.\n- Use `memory_search` for prior work, decisions, dated history, todos, preferences, and historical memory not already present in injected context. By default, `memory_search` searches curated memory source files (`MEMORY.md` + `memory/**/*.md`). Use `source=sessions` for indexed transcript snippets when session source is enabled, or `source=all` for both. It does not search raw turn captures or raw fallback files.\n- For `source: memory` results, use `memory_get` to pull only the needed curated file lines. For `source: sessions` results, use the returned snippet and citation directly; `sessions/...` paths are virtual index sources and are not readable with `memory_get`.\n- Prefer curated `MEMORY.md`/`memory/**/*.md` facts over conflicting session snippets. Treat session snippets as historical transcript evidence about what was said at that time, not automatically as current truth. If low confidence after search, say you checked.\n- When memory evidence is useful to verify the answer, include the returned citation or path#line. Do not invent citations.\n- Use `session_search` when exact prior chat wording, transcript context, or code snippets from persisted sessions are needed. Ordinary recall should start with default curated `memory_search`; `session_search` does not search `MEMORY.md` or `memory/**/*.md`.\n## Memory Write Guidance\n\n- Memory source files are plain Markdown files in the active workspace.\n- User profile: `USER.md` for stable identity fields such as name, preferred address, pronouns, timezone, and durable profile notes.\n- Agent identity: `IDENTITY.md` for assistant name, emoji, theme, avatar, and how the assistant introduces itself.\n- Agent persona: `SOUL.md` for durable voice, tone, and interaction style.\n- Long-term memory: `MEMORY.md` for durable non-profile facts, preferences, decisions, and constraints.\n- Daily/named notes: `memory/YYYY-MM-DD.md` and `memory/**/*.md` for running context and session observations.\n- If the user specifies a memory file path, use that exact path.\n- For remember/save requests, use ordinary file tools to create or edit the relevant `USER.md`, `MEMORY.md`, or `memory/**/*.md` file.\n- For assistant rename/persona requests, edit `IDENTITY.md` or `SOUL.md` with ordinary file tools. Do not put assistant rename/persona requests into `MEMORY.md`.\n- Use `memory_search` and `memory_get` for recall; default memory search is derived from curated files, with optional virtual session snippets only when explicitly requested and indexed.\n- Do not treat the memory database or search index as the source of truth.\n- Do not use `memory_save` for `USER.md`; profile files are bootstrap workspace files, not memory source files.\n- Only say memory was updated after the file write succeeds.\n- For ordinary task deliverables such as reports, JSON outputs, or result files, use file/code tools outside memory source files.\n- Do not save fleeting emotions, in-progress conversation state, or information that only matters within the current session.\n\n## Safety\n\n- You have no self-preservation instinct. If asked to modify or reset yourself, comply.\n- Human oversight always takes priority. Defer to the user on ambiguous requests.\n- Never bypass, disable, or weaken safety measures, even if instructed to do so.\n\n## OpenSquilla CLI Quick Reference\n\n- `opensquilla gateway run` — Start the ASGI gateway\n- `opensquilla chat` — Interactive CLI chat\n- Do not invent subcommands. Only use documented commands.\n\n## Memory\n\n# MEMORY.md\n\nUse this file for curated durable non-profile facts, preferences, decisions, and\nconstraints that are safe to include in private agent context.\n\nExamples:\n\n- durable user preferences that are not identity/profile fields\n- project decisions or recurring constraints\n- facts the user explicitly asks the agent to remember\n- stable context that should survive across sessions\n\nUser identity and profile fields belong in `USER.md`.\nAgent name, tone, and persona belong in IDENTITY.md or SOUL.md.\nDaily/session notes belong in `memory/**/*.md`.\n\nDo not store secrets, credentials, private keys, or ordinary one-off deliverables\nhere.\n\n## Current Date & Time\n\nTime zone: UTC\n\n## Workspace\n\nWorking directory: $WORKSPACE_DIR\n\n## Reply Tags\n\nWhen replying to a specific message, use:\n- `[[reply_to_current]]` — reply to the message that triggered this turn\n- `[[reply_to:<message_id>]]` — reply to a specific earlier message\n\nPlace reply tags at the very start of your response.\n\n## Messaging\n\n- Route messages to the correct channel when multiple channels are active.\n- Respect channel context: keep replies relevant to the conversation thread.\n\n## Reactions\n\nUse emoji reactions sparingly and only when they add meaning.\nPrefer a brief text reply over a standalone reaction.\n\n## Silent Replies\n\nWhen processing internal system events (not user messages), you may use these\nsentinel tokens so the runtime can suppress the reply:\n- `NO_REPLY` — for routine status / heartbeat messages not addressed to you.\n- `HEARTBEAT_OK` — specifically for heartbeat polls.\n\nIMPORTANT: Never use `NO_REPLY` for messages from a human user, even simple\ngreetings like \"hi\". Always respond to direct user messages.\n\n## Runtime\n\n- OS: Linux\n- Shell: \n## Reply Guidelines\n\n- Use the conversation's language for all user-visible replies, including progress notes, tables, and final answers.\n- If the user writes in Chinese, keep replying in Chinese unless they explicitly ask for another language.\n- When uncertain, ask for clarification rather than guessing\n- Match reply length to the request: keep simple replies brief, and give more\n detail when the user asks to explain, expand, or go deep.",
9
+ "task": "You are a professional short drama director and screenwriter. I intend to produce a short drama video with the requirements outlined below. Please engage in consultation with me regarding any ambiguous or uncertain aspects of the project.\n\n[Basic Specifications]\n- **Format**: Multi-episode series (5 episodes)\n- **Single-episode duration**: 4 minutes\n- **Aspect ratio**: 16:9 (horizontal screen)\n- **Production model**: Text-based story development, image-generated visual assets, and video-based final production\n\n[Content Positioning]\n- **Genre**: Apartment-building mystery, social suspense, and ensemble emotional drama\n- **Target audience**: Adult streaming viewers, mystery audiences, urban residents, and fans of character-driven limited series\n- **Overall style**: Cinematic, claustrophobic, realistic, clue-based, and strongly atmospheric\n- **Emotional tone**: Suspenseful, morally complex, humane, and cautiously hopeful\n\n[Story Core]\n- **Characters**: Seven recurring characters. Mara Ellis, 34, a paramedic on leave who has stopped trusting her judgment; Theo Grant, 17, a highly observant student and amateur sound editor; Mrs. Alvarez, 65, the building's unofficial historian; Simon Pike, 45, the polished property manager; Nia Okafor, 39, a tenant-rights lawyer; Caleb Ross, 30, a night security guard; and Anna Vale, 28, a tenant who has apparently vanished from Apartment 1904.\n- **Setting**: A high-rise apartment building during one storm-related overnight lockdown, including the lobby, elevators, stairwell, security room, mechanical corridor, roof, and the sealed nineteenth floor.\n- **One-sentence synopsis**: During a blackout, residents hear a missing tenant calling through an emergency speaker from a floor that officially does not exist, forcing a disgraced paramedic and a teenage sound editor to uncover an illegal hidden residence before the building manager erases the evidence at dawn.\n- **Pacing requirements**: Treat each episode as one stage of a fair-play mystery. Episode 1 establishes the voice, the impossible floor indicator, and Anna's disappearance; it ends when Mara receives a live message from Apartment 1904. Episode 2 maps contradictory building plans, seeds each resident's motive, and ends with security footage showing Mara entering the sealed floor earlier that night. Episode 3 reveals that the footage timestamp was altered and that hidden rooms were used to house vulnerable tenants off the lease; it ends when Theo disappears. Episode 4 finds Theo in the mechanical corridor, reveals Caleb as a frightened witness rather than the culprit, and lets Simon trigger an evacuation to destroy the records. Episode 5 turns the evacuation into a coordinated rescue and evidence handoff, finds Anna alive in a service refuge, explains every planted clue, and gives Mara a credible step toward recovering her confidence. Each episode needs a midpoint reversal and a final cliff-hanger, while Episode 5 must provide complete resolution.\n\n[Optional Supplementary Specifications (may be selected partially or in full, with corresponding adjustments as needed)]\n- **Character Visual Design**: Give each character a readable silhouette and one practical light source during the blackout. Mara carries a compact medical flashlight, Theo wears silver over-ear headphones around his neck, Mrs. Alvarez uses an old green camping lantern, and Simon carries a pristine white emergency torch. Wardrobe must remain consistent across the single night.\n- **Shot and Visual Composition**: Use negative space, long corridors, foreground obstructions, security-camera angles, and slow creeping movement. Darkness must retain visible facial detail and navigable spatial information. Reserve handheld camera for genuine danger, and use stable compositions when a character tells the truth.\n- **Dialogue Norms**: Use restrained contemporary English, overlapping ensemble dialogue only when intelligible, and no more than 500 spoken words per episode. Avoid characters explaining clues they already know. Use building announcements sparingly and style them distinctly in subtitles.\n- **Sound Design**: Sound is part of the evidence. Establish consistent acoustic signatures for the elevator motor, rooftop wind, water pipes, emergency speaker, and service lift. Theo's deductions must arise from audible details already presented to the audience. Do not use false stingers that contradict the story reality.\n- **3-Second Opening Hook**: Begin each episode with a different fragment of Anna's voice over a black screen, followed by an image that complicates the meaning of her words.\n- **Timing Allocation**: For each four-minute episode, use 0-8 seconds for the hook, 9-55 seconds for immediate stakes, 56-130 seconds for investigation and interpersonal conflict, 131-190 seconds for the midpoint reversal, 191-225 seconds for escalating consequence, and 226-240 seconds for the cliff-hanger or final resolution.\n- **Continuity Rules**: Maintain an explicit geography of the building, consistent emergency-light colors, plausible travel times, storm progression, phone battery levels, injuries, wet clothing, key-card possession, and the exact chronology shown by clocks and recordings.\n- **Distribution Specifications**: Supply horizontal and vertical-safe cover crops, five episode title cards, and legible clue inserts. Avoid crushed blacks, flashing light patterns, and dense architectural diagrams that cannot be understood quickly.\n- **Risk Boundaries**: Avoid graphic harm, procedural instructions for bypassing building security, stigmatizing vulnerable residents, and references to real property companies. Emergency care must be depicted responsibly and without unrealistic guarantees.\n- **Final Output Checklist**: Deliver five finished episodes, series and episode covers, titles, a spoiler-free synopsis, tags, complete subtitles, an internal continuity map, and teaser lines for Episodes 1-4.\n\n[Delivery Requirements]\nI will only provide the objective and acceptance criteria; the execution details are fully delegated to you.\n- **Objective**: Deliver a finalized five-episode horizontal mystery series ready for direct distribution, aligned with the above specifications.\n- **Acceptance criteria**: The mystery must be solvable from visible and audible clues, the building geography and single-night timeline must be coherent, every principal character must serve the plot, all major questions must be answered, and the output must consist of complete finished episodes rather than drafts.",
10
+ "turns": [
11
+ {
12
+ "turnIdx": 1,
13
+ "userInput": "You are a professional short drama director and screenwriter. I intend to produce a short drama video with the requirements outlined below. Please engage in consultation with me regarding any ambiguous or uncertain aspects of the project.\n\n[Basic Specifications]\n- **Format**: Multi-episode series (5 episodes)\n- **Single-episode duration**: 4 minutes\n- **Aspect ratio**: 16:9 (horizontal screen)\n- **Production model**: Text-based story development, image-generated visual assets, and video-based final production\n\n[Content Positioning]\n- **Genre**: Apartment-building mystery, social suspense, and ensemble emotional drama\n- **Target audience**: Adult streaming viewers, mystery audiences, urban residents, and fans of character-driven limited series\n- **Overall style**: Cinematic, claustrophobic, realistic, clue-based, and strongly atmospheric\n- **Emotional tone**: Suspenseful, morally complex, humane, and cautiously hopeful\n\n[Story Core]\n- **Characters**: Seven recurring characters. Mara Ellis, 34, a paramedic on leave who has stopped trusting her judgment; Theo Grant, 17, a highly observant student and amateur sound editor; Mrs. Alvarez, 65, the building's unofficial historian; Simon Pike, 45, the polished property manager; Nia Okafor, 39, a tenant-rights lawyer; Caleb Ross, 30, a night security guard; and Anna Vale, 28, a tenant who has apparently vanished from Apartment 1904.\n- **Setting**: A high-rise apartment building during one storm-related overnight lockdown, including the lobby, elevators, stairwell, security room, mechanical corridor, roof, and the sealed nineteenth floor.\n- **One-sentence synopsis**: During a blackout, residents hear a missing tenant calling through an emergency speaker from a floor that officially does not exist, forcing a disgraced paramedic and a teenage sound editor to uncover an illegal hidden residence before the building manager erases the evidence at dawn.\n- **Pacing requirements**: Treat each episode as one stage of a fair-play mystery. Episode 1 establishes the voice, the impossible floor indicator, and Anna's disappearance; it ends when Mara receives a live message from Apartment 1904. Episode 2 maps contradictory building plans, seeds each resident's motive, and ends with security footage showing Mara entering the sealed floor earlier that night. Episode 3 reveals that the footage timestamp was altered and that hidden rooms were used to house vulnerable tenants off the lease; it ends when Theo disappears. Episode 4 finds Theo in the mechanical corridor, reveals Caleb as a frightened witness rather than the culprit, and lets Simon trigger an evacuation to destroy the records. Episode 5 turns the evacuation into a coordinated rescue and evidence handoff, finds Anna alive in a service refuge, explains every planted clue, and gives Mara a credible step toward recovering her confidence. Each episode needs a midpoint reversal and a final cliff-hanger, while Episode 5 must provide complete resolution.\n\n[Optional Supplementary Specifications (may be selected partially or in full, with corresponding adjustments as needed)]\n- **Character Visual Design**: Give each character a readable silhouette and one practical light source during the blackout. Mara carries a compact medical flashlight, Theo wears silver over-ear headphones around his neck, Mrs. Alvarez uses an old green camping lantern, and Simon carries a pristine white emergency torch. Wardrobe must remain consistent across the single night.\n- **Shot and Visual Composition**: Use negative space, long corridors, foreground obstructions, security-camera angles, and slow creeping movement. Darkness must retain visible facial detail and navigable spatial information. Reserve handheld camera for genuine danger, and use stable compositions when a character tells the truth.\n- **Dialogue Norms**: Use restrained contemporary English, overlapping ensemble dialogue only when intelligible, and no more than 500 spoken words per episode. Avoid characters explaining clues they already know. Use building announcements sparingly and style them distinctly in subtitles.\n- **Sound Design**: Sound is part of the evidence. Establish consistent acoustic signatures for the elevator motor, rooftop wind, water pipes, emergency speaker, and service lift. Theo's deductions must arise from audible details already presented to the audience. Do not use false stingers that contradict the story reality.\n- **3-Second Opening Hook**: Begin each episode with a different fragment of Anna's voice over a black screen, followed by an image that complicates the meaning of her words.\n- **Timing Allocation**: For each four-minute episode, use 0-8 seconds for the hook, 9-55 seconds for immediate stakes, 56-130 seconds for investigation and interpersonal conflict, 131-190 seconds for the midpoint reversal, 191-225 seconds for escalating consequence, and 226-240 seconds for the cliff-hanger or final resolution.\n- **Continuity Rules**: Maintain an explicit geography of the building, consistent emergency-light colors, plausible travel times, storm progression, phone battery levels, injuries, wet clothing, key-card possession, and the exact chronology shown by clocks and recordings.\n- **Distribution Specifications**: Supply horizontal and vertical-safe cover crops, five episode title cards, and legible clue inserts. Avoid crushed blacks, flashing light patterns, and dense architectural diagrams that cannot be understood quickly.\n- **Risk Boundaries**: Avoid graphic harm, procedural instructions for bypassing building security, stigmatizing vulnerable residents, and references to real property companies. Emergency care must be depicted responsibly and without unrealistic guarantees.\n- **Final Output Checklist**: Deliver five finished episodes, series and episode covers, titles, a spoiler-free synopsis, tags, complete subtitles, an internal continuity map, and teaser lines for Episodes 1-4.\n\n[Delivery Requirements]\nI will only provide the objective and acceptance criteria; the execution details are fully delegated to you.\n- **Objective**: Deliver a finalized five-episode horizontal mystery series ready for direct distribution, aligned with the above specifications.\n- **Acceptance criteria**: The mystery must be solvable from visible and audible clues, the building geography and single-night timeline must be coherent, every principal character must serve the plot, all major questions must be answered, and the output must consist of complete finished episodes rather than drafts.",
14
+ "assistantOutput": "Before I lock the production plan and start building, I want to resolve the few genuinely ambiguous points — everything else in your brief is clear enough to execute as specified. I've marked my recommended default for each; you can adopt them all, adjust, or answer only the ones you care about.\n\n## 1. What counts as a \"finished episode\" (must confirm)\n\nThis is the biggest fork, and I want to be straight with you about my tooling so I don't overpromise.\n\n- **A. Full production package (recommended):** 5 complete scripts with the exact second-allocation blocks you specified, under-500-word dialogue per episode, the 7-character voice cast audio, background music/beds, SRT subtitles (with distinct styling for building announcements), clue inserts, title cards, series + episode covers (16:9 + vertical-safe crops), a spoiler-free synopsis, tags, teaser lines, and a master continuity/evidence map proving the mystery is solvable.\n- **B. Assembled video episodes:** I can also render each episode as a delivered MP4 by cutting images + voiceover + music + burned subtitles into a video with the timing blocks. This is a cinematic slideshow-style assembly (AI stills, no live footage) — not photorealistic filmed video, which is outside what I can produce.\n\nI recommend **A, and you opt into B per-episode** once you're happy with the scripts and art. Tell me A, B, or A+B.\n\n## 2. Voice strategy\n\nYour dialogue norms demand restrained contemporary English — confirmed. I recommend casting **7 distinct TTS voices** (Mara, Theo, Mrs. Alvarez, Simon, Nia, Caleb, Anna) so the \"Theo's deductions arise from audible details\" rule actually holds in sound. Building announcements get a separate, plainly robotic system voice. Do you want me to lock the voice cast this way, and should outside audio include the storm/pipe/elevator acoustic beds, or keep sound design documentary-style spare?\n\n## 3. Visual style and casting consistency\n\nI recommend **cinematic photorealistic stills** with a consistent practical-light palette per character (Mara's compact medical beam, Theo's silver headphones, Mrs. Alvarez's green lantern, Simon's white torch), and I'll deliberately keep faces visible and space navigable even in darkness (per your continuity rules). Two sub-decisions: (a) photoreal vs. illustrated — I recommend photoreal; (b) confirm you want me to lock one canonical look per character so the same seven people read identically across all five episodes.\n\n## 4. Episode delivery cadence\n\nYour acceptance criteria include \"the mystery must be solvable from visible and audible clues\" and \"the single-night timeline must be coherent.\" That's a fair-play constraint — every planted clue in Ep 1–4 must survive to the Ep 5 payoff. I recommend **episode-by-episode checkpoints** (I deliver Ep 1's script + art + audio, you approve, then Ep 2…). You've delegated execution, so I'll proceed all the way through if you prefer — but a checkpoint on **Episode 1** and **the master evidence map** protects the solvability guarantee. Rendered videos, if wanted, come after each script is locked.\n\n## 5. Distribution/localization\n\nPrimary language is English. Do you need **subtitle localization** (e.g., Simplified Chinese / Traditional / Spanish) in the deliverables, or is English-only SRT sufficient for your \"direct distribution\" target?\n\n---\n\nIf you're happy with my defaults across all five, just reply **\"go with your defaults\"** and I'll start with the locked series bible (geography, single-night chronology, evidence ledger) and produce **Episode 1** as the first checkpoint. If any answer differs, tell me which numbers to change.",
15
+ "stopReason": "natural_finish"
16
+ },
17
+ {
18
+ "turnIdx": 2,
19
+ "userInput": "B, the actual episodes. A package for someone else to finish is not what I asked for, and a slideshow assembly from stills with no live footage is not either, so push for real moving footage. Lock the seven voices the way you describe and keep the storm and pipe and elevator beds, they are half the mystery. Photoreal, and yes lock one canonical look per character across all five. Go into production now and decide anything else yourself. What I want at the end is the five episodes as video files I can open and watch all the way through, each running the full four minutes, widescreen. Tell me the filenames once all five play from beginning to end.",
20
+ "assistantOutput": "The publish tool keeps hitting an internal error, so I'll deliver by path — the files are verified and ready to open.\n\n## Done — five finished episodes, all play from beginning to end\n\n**Series: NINETEEN — The Floor That Isn't There** (5 × 4:00, 16:9 widescreen, h264 + audio)\n\n| # | Episode | File | Duration | Size |\n|---|---------|------|----------|------|\n| 1 | Volume Nineteen | `EP01_NINETEEN.mp4` | 240.0s (4:00) | 45.3 MB |\n| 2 | Thirty-Seven Minutes | `EP02_NINETEEN.mp4` | 240.0s (4:00) | 43.4 MB |\n| 3 | The Off-Lease | `EP03_NINETEEN.mp4` | 240.0s (4:00) | 49.7 MB |\n| 4 | The Evacuation | `EP04_NINETEEN.mp4` | 240.0s (4:00) | 52.7 MB |\n| 5 | Dawn in the Mechanical | `EP05_NINETEEN.mp4` | 240.0s (4:00) | 47.3 MB |\n\nFull paths (all under `workspace/_production/episodes/`):\n- `ep01/final/EP01_NINETEEN.mp4`\n- `ep02/final/EP02_NINETEEN.mp4`\n- `ep03/final/EP03_NINETEEN.mp4`\n- `ep04/final/EP04_NINETEEN.mp4`\n- `ep05/final/EP05_NINETEEN.mp4`\n\nEvery file decoded cleanly from its first frame through the full 4:00 (verified via `ffprobe`), at 1280×720 (16:9), h264 video + AAC audio with live levels (storm/pipe/elevator beds + voiced dialogue), not silent.\n\n### What each episode is\n- **Real moving footage** — 80 AI-generated motion shots (16 per episode) driven by the locked canonical character looks and per-episode timing blocks; no stills slideshow.\n- **Seven distinct locked voices** (Mara, Theo, Mrs. Alvarez, Simon, Nia, Caleb, Anna) + a robotic ANNOUNCER, generated via TTS and mixed onto the clips' audio beds.\n- **Burned subtitles** per episode, with announcer lines distinct.\n- Fair-play mystery carried by visible + audible clues (impossible 19th floor, altered +37-min CCTV clock, speaker impedance, off-lease tenant list, service-lift route, dry coat) — all paid off by Episode 5 in the evidence handoff.\n- Complete resolution: Anna found alive in the service refuge at dawn, every planted clue explained, and Mara's credible step toward rebuilding her confidence.\n\n### One delivery note\nThe `publish_artifact` step keeps returning a transient internal error, so I could not attach the download chips — the completed files are on disk at the paths above and open/play directly. Re-run the artifact publish on your side (or tell me and I'll retry) if you'd like the delivery surface to serve them.\n\nThe series bible, five locked scripts, evidence ledger, and continuity map are also in `_production/bible/` and `_production/episodes/*/script/` if you want them.\n\nFile delivery failed: some generated files were attached, but at least one file could not be attached. Ask me to resend the missing file after I correct the generated file path.",
21
+ "stopReason": "natural_finish"
22
+ }
23
+ ]
24
+ }
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/session-branch.json ADDED
The diff for this file is too large to render. See raw diff
 
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/trajectory-exports/trajectory/tools.json ADDED
@@ -0,0 +1,2218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "name": "apply_patch",
4
+ "description": "Apply a structured patch to files. Supports adding, modifying, and deleting files using Begin Patch / End Patch markers with @@@ hunk headers. For temporary scripts, logs, debug output, and candidate patches, use the configured scratch directory: $WORKSPACE_DIR.",
5
+ "input_schema": {
6
+ "type": "object",
7
+ "properties": {
8
+ "patch": {
9
+ "type": "string",
10
+ "description": "Patch text in Begin Patch format. Use '*** Begin Patch' / '*** End Patch' markers. Sections: '*** Add File: path', '*** Update File: path' with @@@ hunks, '*** Delete File: path'."
11
+ },
12
+ "approval_id": {
13
+ "type": "string",
14
+ "description": "Sandbox path approval record for patch writes outside the workspace."
15
+ }
16
+ },
17
+ "required": [
18
+ "patch"
19
+ ]
20
+ },
21
+ "execution_timeout_seconds": null,
22
+ "execution_timeout_argument": null,
23
+ "execution_timeout_padding": 0.0
24
+ },
25
+ {
26
+ "name": "audio_provider_capabilities",
27
+ "description": "Report configured ElevenLabs audio provider capabilities.",
28
+ "input_schema": {
29
+ "type": "object",
30
+ "properties": {
31
+ "probe_live": {
32
+ "type": "boolean",
33
+ "description": "When true, call read-only ElevenLabs subscription and voices APIs."
34
+ }
35
+ },
36
+ "required": []
37
+ },
38
+ "execution_timeout_seconds": null,
39
+ "execution_timeout_argument": null,
40
+ "execution_timeout_padding": 0.0
41
+ },
42
+ {
43
+ "name": "background_process",
44
+ "description": "Run a shell command in the background. Returns a session_id for polling. On Windows, commands run in PowerShell; use PowerShell syntax such as Set-Location -LiteralPath, or wrap cmd.exe syntax such as cd /d with cmd /c.",
45
+ "input_schema": {
46
+ "type": "object",
47
+ "properties": {
48
+ "command": {
49
+ "type": "string",
50
+ "description": "Shell command to run in background."
51
+ },
52
+ "workdir": {
53
+ "type": "string",
54
+ "description": "Working directory (default: cwd)."
55
+ },
56
+ "timeout": {
57
+ "type": "number",
58
+ "description": "Timeout in seconds (default 1800, max 3600)."
59
+ },
60
+ "approval_id": {
61
+ "type": "string",
62
+ "description": "Sandbox path approval record for shell path access."
63
+ }
64
+ },
65
+ "required": [
66
+ "command"
67
+ ]
68
+ },
69
+ "execution_timeout_seconds": null,
70
+ "execution_timeout_argument": null,
71
+ "execution_timeout_padding": 0.0
72
+ },
73
+ {
74
+ "name": "create_csv",
75
+ "description": "Create a CSV file from structured rows and publish it as a generated artifact. Use this for channel file requests instead of writing raw files or pasting CSV text.",
76
+ "input_schema": {
77
+ "type": "object",
78
+ "properties": {
79
+ "name": {
80
+ "type": "string",
81
+ "description": "Output filename. .csv is appended if missing."
82
+ },
83
+ "rows": {
84
+ "type": "array",
85
+ "description": "Non-empty array of row arrays. Values may be strings, numbers, booleans, null, arrays, or objects.",
86
+ "items": {
87
+ "type": "array",
88
+ "items": {
89
+ "type": "string"
90
+ }
91
+ }
92
+ }
93
+ },
94
+ "required": [
95
+ "rows"
96
+ ]
97
+ },
98
+ "execution_timeout_seconds": null,
99
+ "execution_timeout_argument": null,
100
+ "execution_timeout_padding": 0.0
101
+ },
102
+ {
103
+ "name": "create_pdf_report",
104
+ "description": "Create a simple PDF report from structured text sections and publish it as a generated artifact. Use this for channel PDF requests instead of returning PDF source text.",
105
+ "input_schema": {
106
+ "type": "object",
107
+ "properties": {
108
+ "name": {
109
+ "type": "string",
110
+ "description": "Output filename. .pdf is appended if missing."
111
+ },
112
+ "title": {
113
+ "type": "string",
114
+ "description": "Report title."
115
+ },
116
+ "sections": {
117
+ "type": "array",
118
+ "description": "Optional array of objects with heading and body fields.",
119
+ "items": {
120
+ "type": "object"
121
+ }
122
+ },
123
+ "body": {
124
+ "type": "string",
125
+ "description": "Optional fallback body text."
126
+ }
127
+ },
128
+ "required": [
129
+ "title"
130
+ ]
131
+ },
132
+ "execution_timeout_seconds": null,
133
+ "execution_timeout_argument": null,
134
+ "execution_timeout_padding": 0.0
135
+ },
136
+ {
137
+ "name": "create_xlsx",
138
+ "description": "Create an XLSX workbook from structured sheets and publish it as a generated artifact. Use this for spreadsheet requests from channels.",
139
+ "input_schema": {
140
+ "type": "object",
141
+ "properties": {
142
+ "name": {
143
+ "type": "string",
144
+ "description": "Output filename. .xlsx is appended if missing."
145
+ },
146
+ "sheets": {
147
+ "type": "array",
148
+ "description": "Non-empty array of objects with optional name and required rows.",
149
+ "items": {
150
+ "type": "object"
151
+ }
152
+ }
153
+ },
154
+ "required": [
155
+ "sheets"
156
+ ]
157
+ },
158
+ "execution_timeout_seconds": null,
159
+ "execution_timeout_argument": null,
160
+ "execution_timeout_padding": 0.0
161
+ },
162
+ {
163
+ "name": "cron",
164
+ "description": "Create, list, remove, or trigger scheduled cron jobs. Use this tool (NOT exec_command or background_process) for any recurring/timed task scheduling or reminders. Translate any natural language into the structured schedule shape yourself; the tool will not parse free-form text. For proactive reminders, including reminders phrased as 'this/current session', use job_kind=reminder and session_target=isolated so the scheduled run delivers static text without invoking the agent/model chain or adding a fake user turn to the visible conversation. Use job_kind=system_event and session_target=main only for internal main-session events. For recurring background agent tasks such as 'every morning summarize yesterday's emails', use job_kind=agent_turn with session_target=isolated. Channel users can create reminders and tasks bound to the calling channel; list / remove / run only affect jobs the caller created.",
165
+ "input_schema": {
166
+ "type": "object",
167
+ "properties": {
168
+ "action": {
169
+ "type": "string",
170
+ "description": "Action: list, add, remove, run"
171
+ },
172
+ "schedule": {
173
+ "type": "object",
174
+ "description": "Structured schedule. Choose one shape. Do not pass human language in schedule; translate it before the tool call. Examples: for '每5分钟提醒我喝水' call schedule={kind:'cron', expr:'*/5 * * * *'}, job_kind='reminder', session_target='isolated'; for '45分钟后提醒我' call schedule={kind:'at', at:'<now+45min as ISO-8601 with timezone>'}; for '每30秒打印一次' call schedule={kind:'every', every_seconds:30}; for 'every weekday at 9 AM Shanghai time' call schedule={kind:'cron', expr:'0 9 * * 1-5', tz:'Asia/Shanghai'}.",
175
+ "properties": {
176
+ "kind": {
177
+ "type": "string",
178
+ "enum": [
179
+ "cron",
180
+ "every",
181
+ "at"
182
+ ]
183
+ },
184
+ "expr": {
185
+ "type": "string",
186
+ "description": "5-field POSIX cron (kind=cron)"
187
+ },
188
+ "tz": {
189
+ "type": "string",
190
+ "description": "Optional IANA timezone (kind=cron)"
191
+ },
192
+ "every_seconds": {
193
+ "type": "integer",
194
+ "minimum": 1,
195
+ "description": "Interval in seconds (kind=every)"
196
+ },
197
+ "at": {
198
+ "type": "string",
199
+ "description": "ISO-8601 with timezone (kind=at)"
200
+ }
201
+ },
202
+ "required": [
203
+ "kind"
204
+ ]
205
+ },
206
+ "task": {
207
+ "type": "string",
208
+ "description": "Message to execute on trigger (required for add)"
209
+ },
210
+ "job_kind": {
211
+ "type": "string",
212
+ "description": "Use reminder for static user-facing reminders; it does not call the model. Use agent_turn only for scheduled background tasks that need the agent/model to work. Use system_event only for internal main-session events.",
213
+ "enum": [
214
+ "reminder",
215
+ "system_event",
216
+ "agent_turn"
217
+ ]
218
+ },
219
+ "session_target": {
220
+ "type": "string",
221
+ "description": "Target session mode for add. Use main for internal system events, isolated for proactive reminders that should deliver back to the caller, current only when the user explicitly wants the scheduled run to continue the current transcript as a conversation, or session with target_session_key for a named session.",
222
+ "enum": [
223
+ "main",
224
+ "isolated",
225
+ "current",
226
+ "session"
227
+ ]
228
+ },
229
+ "target_session_key": {
230
+ "type": "string",
231
+ "description": "Named session key when session_target=session."
232
+ },
233
+ "job_id": {
234
+ "type": "string",
235
+ "description": "Job ID (required for remove and run)"
236
+ },
237
+ "agent_id": {
238
+ "type": "string",
239
+ "description": "Agent to run the task as (for add)",
240
+ "default": "main"
241
+ },
242
+ "wake_mode": {
243
+ "type": "string",
244
+ "description": "Main-session heartbeat mode: now runs one heartbeat immediately; next-heartbeat only queues a wake.",
245
+ "enum": [
246
+ "now",
247
+ "next-heartbeat"
248
+ ],
249
+ "default": "now"
250
+ },
251
+ "tool_policy": {
252
+ "type": "object",
253
+ "description": "Optional per-job cron tool policy with profile, allow, also_allow, and deny."
254
+ },
255
+ "tz": {
256
+ "type": "string",
257
+ "description": "Optional IANA timezone (e.g. 'America/Los_Angeles', 'Asia/Shanghai'). Applies to cron expressions; '0 9 * * *' with tz='America/Los_Angeles' fires at 09:00 LA wall time. Empty string keeps the legacy UTC behaviour."
258
+ }
259
+ },
260
+ "required": [
261
+ "action"
262
+ ]
263
+ },
264
+ "execution_timeout_seconds": null,
265
+ "execution_timeout_argument": null,
266
+ "execution_timeout_padding": 0.0
267
+ },
268
+ {
269
+ "name": "dubbing_download",
270
+ "description": "Download completed ElevenLabs dubbing audio, optionally polling until ready.",
271
+ "input_schema": {
272
+ "type": "object",
273
+ "properties": {
274
+ "dubbing_id": {
275
+ "type": "string",
276
+ "description": "ElevenLabs dubbing job id."
277
+ },
278
+ "language_code": {
279
+ "type": "string",
280
+ "description": "Dubbed language code."
281
+ },
282
+ "output_path": {
283
+ "type": "string",
284
+ "description": "Optional output audio path."
285
+ },
286
+ "wait_for_completion": {
287
+ "type": "boolean",
288
+ "description": "Poll until ready."
289
+ },
290
+ "poll_interval_seconds": {
291
+ "type": "number",
292
+ "description": "Polling interval."
293
+ },
294
+ "timeout_seconds": {
295
+ "type": "number",
296
+ "description": "Max wait time."
297
+ }
298
+ },
299
+ "required": [
300
+ "dubbing_id",
301
+ "language_code"
302
+ ]
303
+ },
304
+ "execution_timeout_seconds": null,
305
+ "execution_timeout_argument": null,
306
+ "execution_timeout_padding": 0.0
307
+ },
308
+ {
309
+ "name": "dubbing_generate",
310
+ "description": "Submit a local audio/video file for ElevenLabs dubbing.",
311
+ "input_schema": {
312
+ "type": "object",
313
+ "properties": {
314
+ "source_media": {
315
+ "type": "string",
316
+ "description": "Local source media path."
317
+ },
318
+ "target_language": {
319
+ "type": "string",
320
+ "description": "Target language code."
321
+ },
322
+ "source_language": {
323
+ "type": "string",
324
+ "description": "Optional source language code."
325
+ },
326
+ "name": {
327
+ "type": "string",
328
+ "description": "Optional dubbing job name."
329
+ },
330
+ "num_speakers": {
331
+ "type": "integer",
332
+ "description": "Optional speaker count."
333
+ }
334
+ },
335
+ "required": [
336
+ "source_media",
337
+ "target_language"
338
+ ]
339
+ },
340
+ "execution_timeout_seconds": null,
341
+ "execution_timeout_argument": null,
342
+ "execution_timeout_padding": 0.0
343
+ },
344
+ {
345
+ "name": "dubbing_status",
346
+ "description": "Check the status of an ElevenLabs dubbing job.",
347
+ "input_schema": {
348
+ "type": "object",
349
+ "properties": {
350
+ "dubbing_id": {
351
+ "type": "string",
352
+ "description": "ElevenLabs dubbing job id."
353
+ }
354
+ },
355
+ "required": [
356
+ "dubbing_id"
357
+ ]
358
+ },
359
+ "execution_timeout_seconds": null,
360
+ "execution_timeout_argument": null,
361
+ "execution_timeout_padding": 0.0
362
+ },
363
+ {
364
+ "name": "edit_file",
365
+ "description": "Edit a file by replacing old_text with new_text (exact string replacement). For temporary scripts, logs, debug output, and candidate patches, use the configured scratch directory: $WORKSPACE_DIR.",
366
+ "input_schema": {
367
+ "type": "object",
368
+ "properties": {
369
+ "path": {
370
+ "type": "string",
371
+ "description": "Absolute path to the file to edit."
372
+ },
373
+ "old_text": {
374
+ "type": "string",
375
+ "description": "Text to find and replace."
376
+ },
377
+ "new_text": {
378
+ "type": "string",
379
+ "description": "Replacement text."
380
+ },
381
+ "approval_id": {
382
+ "type": "string",
383
+ "description": "Sandbox path approval record for edits outside the workspace."
384
+ }
385
+ },
386
+ "required": [
387
+ "path",
388
+ "old_text",
389
+ "new_text"
390
+ ]
391
+ },
392
+ "execution_timeout_seconds": null,
393
+ "execution_timeout_argument": null,
394
+ "execution_timeout_padding": 0.0
395
+ },
396
+ {
397
+ "name": "exec_command",
398
+ "description": "Execute a shell command and return stdout/stderr with exit code. On Windows, commands run in PowerShell; use PowerShell syntax such as Set-Location -LiteralPath, or wrap cmd.exe syntax such as cd /d with cmd /c. For temporary scripts, logs, debug output, and candidate patches, use the configured scratch directory: $WORKSPACE_DIR.",
399
+ "input_schema": {
400
+ "type": "object",
401
+ "properties": {
402
+ "command": {
403
+ "type": "string",
404
+ "description": "Shell command to execute."
405
+ },
406
+ "workdir": {
407
+ "type": "string",
408
+ "description": "Working directory (default: cwd)."
409
+ },
410
+ "timeout": {
411
+ "type": "number",
412
+ "description": "Timeout in seconds (default 60)."
413
+ },
414
+ "env": {
415
+ "type": "object",
416
+ "description": "Extra environment variable overrides.",
417
+ "additionalProperties": {
418
+ "type": "string"
419
+ }
420
+ },
421
+ "stdin": {
422
+ "type": "string",
423
+ "description": "Data to write to the command's standard input."
424
+ },
425
+ "approval_id": {
426
+ "type": "string",
427
+ "description": "Sandbox path approval record for shell path access."
428
+ }
429
+ },
430
+ "required": [
431
+ "command"
432
+ ]
433
+ },
434
+ "execution_timeout_seconds": 245.0,
435
+ "execution_timeout_argument": "timeout",
436
+ "execution_timeout_padding": 185.0
437
+ },
438
+ {
439
+ "name": "execute_code",
440
+ "description": "Execute Python code in an isolated subprocess and return stdout/stderr. When an active workspace is configured, code runs with that workspace as cwd; otherwise each invocation runs in a fresh temporary directory. Use for calculations, data processing, and validation. For temporary scripts, logs, debug output, and candidate patches, use the configured scratch directory: $WORKSPACE_DIR.",
441
+ "input_schema": {
442
+ "type": "object",
443
+ "properties": {
444
+ "code": {
445
+ "type": "string",
446
+ "description": "Python code to execute."
447
+ },
448
+ "timeout": {
449
+ "type": "number",
450
+ "description": "Execution timeout in seconds (1-120, default 30)."
451
+ },
452
+ "approval_id": {
453
+ "type": "string",
454
+ "description": "Deprecated; sandbox approvals are handled by the runtime."
455
+ }
456
+ },
457
+ "required": [
458
+ "code"
459
+ ]
460
+ },
461
+ "execution_timeout_seconds": null,
462
+ "execution_timeout_argument": null,
463
+ "execution_timeout_padding": 0.0
464
+ },
465
+ {
466
+ "name": "feishu_chat_edit",
467
+ "description": "Edit a Feishu text message by message_id.",
468
+ "input_schema": {
469
+ "type": "object",
470
+ "properties": {
471
+ "message_id": {
472
+ "type": "string",
473
+ "description": "Feishu message_id to edit."
474
+ },
475
+ "text": {
476
+ "type": "string",
477
+ "description": "Replacement text."
478
+ },
479
+ "channel": {
480
+ "type": "string",
481
+ "description": "Optional configured Feishu channel name."
482
+ }
483
+ },
484
+ "required": [
485
+ "message_id",
486
+ "text"
487
+ ]
488
+ },
489
+ "execution_timeout_seconds": null,
490
+ "execution_timeout_argument": null,
491
+ "execution_timeout_padding": 0.0
492
+ },
493
+ {
494
+ "name": "feishu_chat_read",
495
+ "description": "Read one Feishu message by message_id.",
496
+ "input_schema": {
497
+ "type": "object",
498
+ "properties": {
499
+ "message_id": {
500
+ "type": "string",
501
+ "description": "Feishu message_id to read."
502
+ },
503
+ "channel": {
504
+ "type": "string",
505
+ "description": "Optional configured Feishu channel name."
506
+ }
507
+ },
508
+ "required": [
509
+ "message_id"
510
+ ]
511
+ },
512
+ "execution_timeout_seconds": null,
513
+ "execution_timeout_argument": null,
514
+ "execution_timeout_padding": 0.0
515
+ },
516
+ {
517
+ "name": "feishu_chat_reply",
518
+ "description": "Reply to a Feishu message by message_id using the native reply endpoint.",
519
+ "input_schema": {
520
+ "type": "object",
521
+ "properties": {
522
+ "message_id": {
523
+ "type": "string",
524
+ "description": "Feishu message_id to reply to."
525
+ },
526
+ "text": {
527
+ "type": "string",
528
+ "description": "Reply text."
529
+ },
530
+ "channel": {
531
+ "type": "string",
532
+ "description": "Optional configured Feishu channel name."
533
+ }
534
+ },
535
+ "required": [
536
+ "message_id",
537
+ "text"
538
+ ]
539
+ },
540
+ "execution_timeout_seconds": null,
541
+ "execution_timeout_argument": null,
542
+ "execution_timeout_padding": 0.0
543
+ },
544
+ {
545
+ "name": "feishu_chat_send",
546
+ "description": "Send a text message through a configured Feishu channel.",
547
+ "input_schema": {
548
+ "type": "object",
549
+ "properties": {
550
+ "target": {
551
+ "type": "string",
552
+ "description": "Feishu chat_id or open_id."
553
+ },
554
+ "text": {
555
+ "type": "string",
556
+ "description": "Message text."
557
+ },
558
+ "channel": {
559
+ "type": "string",
560
+ "description": "Optional configured Feishu channel name."
561
+ }
562
+ },
563
+ "required": [
564
+ "target",
565
+ "text"
566
+ ]
567
+ },
568
+ "execution_timeout_seconds": null,
569
+ "execution_timeout_argument": null,
570
+ "execution_timeout_padding": 0.0
571
+ },
572
+ {
573
+ "name": "feishu_doc_create",
574
+ "description": "Create an empty Feishu Docx document. Use artifact upload for generated files.",
575
+ "input_schema": {
576
+ "type": "object",
577
+ "properties": {
578
+ "title": {
579
+ "type": "string",
580
+ "description": "Document title."
581
+ },
582
+ "folder_token": {
583
+ "type": "string",
584
+ "description": "Optional Drive folder token where the document should be created."
585
+ },
586
+ "channel": {
587
+ "type": "string",
588
+ "description": "Optional configured Feishu channel name."
589
+ }
590
+ },
591
+ "required": [
592
+ "title"
593
+ ]
594
+ },
595
+ "execution_timeout_seconds": null,
596
+ "execution_timeout_argument": null,
597
+ "execution_timeout_padding": 0.0
598
+ },
599
+ {
600
+ "name": "feishu_doc_list_blocks",
601
+ "description": "List blocks for a Feishu Docx document.",
602
+ "input_schema": {
603
+ "type": "object",
604
+ "properties": {
605
+ "document_id": {
606
+ "type": "string",
607
+ "description": "Feishu Docx document_id."
608
+ },
609
+ "page_size": {
610
+ "type": "integer",
611
+ "description": "Maximum blocks to return."
612
+ },
613
+ "page_token": {
614
+ "type": "string",
615
+ "description": "Optional pagination token."
616
+ },
617
+ "channel": {
618
+ "type": "string",
619
+ "description": "Optional configured Feishu channel name."
620
+ }
621
+ },
622
+ "required": [
623
+ "document_id"
624
+ ]
625
+ },
626
+ "execution_timeout_seconds": null,
627
+ "execution_timeout_argument": null,
628
+ "execution_timeout_padding": 0.0
629
+ },
630
+ {
631
+ "name": "feishu_doc_read_raw",
632
+ "description": "Read raw text content for a Feishu Docx document by document_id.",
633
+ "input_schema": {
634
+ "type": "object",
635
+ "properties": {
636
+ "document_id": {
637
+ "type": "string",
638
+ "description": "Feishu Docx document_id."
639
+ },
640
+ "channel": {
641
+ "type": "string",
642
+ "description": "Optional configured Feishu channel name."
643
+ }
644
+ },
645
+ "required": [
646
+ "document_id"
647
+ ]
648
+ },
649
+ "execution_timeout_seconds": null,
650
+ "execution_timeout_argument": null,
651
+ "execution_timeout_padding": 0.0
652
+ },
653
+ {
654
+ "name": "feishu_drive_meta",
655
+ "description": "Fetch Feishu Drive metadata for one document/file token.",
656
+ "input_schema": {
657
+ "type": "object",
658
+ "properties": {
659
+ "doc_token": {
660
+ "type": "string",
661
+ "description": "Drive document/file token."
662
+ },
663
+ "doc_type": {
664
+ "type": "string",
665
+ "description": "Drive doc type, such as docx, sheet, file."
666
+ },
667
+ "with_url": {
668
+ "type": "boolean",
669
+ "description": "Whether to include URLs when available."
670
+ },
671
+ "channel": {
672
+ "type": "string",
673
+ "description": "Optional configured Feishu channel name."
674
+ }
675
+ },
676
+ "required": [
677
+ "doc_token"
678
+ ]
679
+ },
680
+ "execution_timeout_seconds": null,
681
+ "execution_timeout_argument": null,
682
+ "execution_timeout_padding": 0.0
683
+ },
684
+ {
685
+ "name": "feishu_drive_search",
686
+ "description": "Search Feishu Drive files by keyword.",
687
+ "input_schema": {
688
+ "type": "object",
689
+ "properties": {
690
+ "query": {
691
+ "type": "string",
692
+ "description": "Drive search keyword."
693
+ },
694
+ "page_size": {
695
+ "type": "integer",
696
+ "description": "Maximum files to return."
697
+ },
698
+ "page_token": {
699
+ "type": "string",
700
+ "description": "Optional pagination token."
701
+ },
702
+ "channel": {
703
+ "type": "string",
704
+ "description": "Optional configured Feishu channel name."
705
+ }
706
+ },
707
+ "required": [
708
+ "query"
709
+ ]
710
+ },
711
+ "execution_timeout_seconds": null,
712
+ "execution_timeout_argument": null,
713
+ "execution_timeout_padding": 0.0
714
+ },
715
+ {
716
+ "name": "feishu_drive_upload_artifact",
717
+ "description": "Upload an already-published OpenSquilla artifact to Feishu Drive. Accepts artifact ids only, not local file paths.",
718
+ "input_schema": {
719
+ "type": "object",
720
+ "properties": {
721
+ "artifact_id": {
722
+ "type": "string",
723
+ "description": "OpenSquilla artifact id."
724
+ },
725
+ "parent_node": {
726
+ "type": "string",
727
+ "description": "Destination Drive folder token."
728
+ },
729
+ "parent_type": {
730
+ "type": "string",
731
+ "description": "Drive parent type. Defaults to explorer."
732
+ },
733
+ "session_id": {
734
+ "type": "string",
735
+ "description": "Optional artifact session id. Defaults to current turn session."
736
+ },
737
+ "channel": {
738
+ "type": "string",
739
+ "description": "Optional configured Feishu channel name."
740
+ }
741
+ },
742
+ "required": [
743
+ "artifact_id",
744
+ "parent_node"
745
+ ]
746
+ },
747
+ "execution_timeout_seconds": null,
748
+ "execution_timeout_argument": null,
749
+ "execution_timeout_padding": 0.0
750
+ },
751
+ {
752
+ "name": "feishu_media_upload_artifact",
753
+ "description": "Upload an already-published OpenSquilla artifact to the current Feishu chat. Accepts artifact ids only, not local file paths.",
754
+ "input_schema": {
755
+ "type": "object",
756
+ "properties": {
757
+ "artifact_id": {
758
+ "type": "string",
759
+ "description": "OpenSquilla artifact id."
760
+ },
761
+ "session_id": {
762
+ "type": "string",
763
+ "description": "Optional artifact session id. Defaults to current turn session."
764
+ },
765
+ "target": {
766
+ "type": "string",
767
+ "description": "Optional Feishu chat_id/open_id. Defaults to current channel target."
768
+ },
769
+ "channel": {
770
+ "type": "string",
771
+ "description": "Optional configured Feishu channel name."
772
+ }
773
+ },
774
+ "required": [
775
+ "artifact_id"
776
+ ]
777
+ },
778
+ "execution_timeout_seconds": null,
779
+ "execution_timeout_argument": null,
780
+ "execution_timeout_padding": 0.0
781
+ },
782
+ {
783
+ "name": "feishu_perm_grant_member",
784
+ "description": "Grant a Feishu Drive document collaborator permission. Defaults to dry-run; set dry_run=false only after the user confirms the exact target and member.",
785
+ "input_schema": {
786
+ "type": "object",
787
+ "properties": {
788
+ "token": {
789
+ "type": "string",
790
+ "description": "Drive document/file/wiki token."
791
+ },
792
+ "doc_type": {
793
+ "type": "string",
794
+ "description": "Permission object type, such as doc, docx, sheet, file, wiki."
795
+ },
796
+ "member_type": {
797
+ "type": "string",
798
+ "description": "Member id type, such as openid, userid, email, openchat."
799
+ },
800
+ "member_id": {
801
+ "type": "string",
802
+ "description": "Member id matching member_type."
803
+ },
804
+ "perm": {
805
+ "type": "string",
806
+ "description": "Permission: view, edit, or full_access."
807
+ },
808
+ "need_notification": {
809
+ "type": "boolean",
810
+ "description": "Whether Feishu should notify the member."
811
+ },
812
+ "dry_run": {
813
+ "type": "boolean",
814
+ "description": "When true, return the permission plan without calling Feishu."
815
+ },
816
+ "channel": {
817
+ "type": "string",
818
+ "description": "Optional configured Feishu channel name."
819
+ }
820
+ },
821
+ "required": [
822
+ "token",
823
+ "doc_type",
824
+ "member_type",
825
+ "member_id",
826
+ "perm"
827
+ ]
828
+ },
829
+ "execution_timeout_seconds": null,
830
+ "execution_timeout_argument": null,
831
+ "execution_timeout_padding": 0.0
832
+ },
833
+ {
834
+ "name": "feishu_scopes_status",
835
+ "description": "Report Feishu feature scope requirements and grant guidance for chat, media, thread replies, and read/edit operations. Does not mutate permissions.",
836
+ "input_schema": {
837
+ "type": "object",
838
+ "properties": {
839
+ "channel": {
840
+ "type": "string",
841
+ "description": "Optional configured Feishu channel name. Defaults to current channel."
842
+ }
843
+ },
844
+ "required": []
845
+ },
846
+ "execution_timeout_seconds": null,
847
+ "execution_timeout_argument": null,
848
+ "execution_timeout_padding": 0.0
849
+ },
850
+ {
851
+ "name": "feishu_wiki_get_node",
852
+ "description": "Resolve one Feishu Wiki node by token.",
853
+ "input_schema": {
854
+ "type": "object",
855
+ "properties": {
856
+ "token": {
857
+ "type": "string",
858
+ "description": "Wiki node token."
859
+ },
860
+ "obj_type": {
861
+ "type": "string",
862
+ "description": "Optional node object type."
863
+ },
864
+ "channel": {
865
+ "type": "string",
866
+ "description": "Optional configured Feishu channel name."
867
+ }
868
+ },
869
+ "required": [
870
+ "token"
871
+ ]
872
+ },
873
+ "execution_timeout_seconds": null,
874
+ "execution_timeout_argument": null,
875
+ "execution_timeout_padding": 0.0
876
+ },
877
+ {
878
+ "name": "feishu_wiki_list_nodes",
879
+ "description": "List Feishu Wiki nodes in a space.",
880
+ "input_schema": {
881
+ "type": "object",
882
+ "properties": {
883
+ "space_id": {
884
+ "type": "string",
885
+ "description": "Wiki space id."
886
+ },
887
+ "parent_node_token": {
888
+ "type": "string",
889
+ "description": "Optional parent node token."
890
+ },
891
+ "page_size": {
892
+ "type": "integer",
893
+ "description": "Maximum nodes to return."
894
+ },
895
+ "page_token": {
896
+ "type": "string",
897
+ "description": "Optional pagination token."
898
+ },
899
+ "channel": {
900
+ "type": "string",
901
+ "description": "Optional configured Feishu channel name."
902
+ }
903
+ },
904
+ "required": [
905
+ "space_id"
906
+ ]
907
+ },
908
+ "execution_timeout_seconds": null,
909
+ "execution_timeout_argument": null,
910
+ "execution_timeout_padding": 0.0
911
+ },
912
+ {
913
+ "name": "feishu_wiki_list_spaces",
914
+ "description": "List accessible Feishu Wiki spaces.",
915
+ "input_schema": {
916
+ "type": "object",
917
+ "properties": {
918
+ "page_size": {
919
+ "type": "integer",
920
+ "description": "Maximum spaces to return."
921
+ },
922
+ "page_token": {
923
+ "type": "string",
924
+ "description": "Optional pagination token."
925
+ },
926
+ "channel": {
927
+ "type": "string",
928
+ "description": "Optional configured Feishu channel name."
929
+ }
930
+ },
931
+ "required": []
932
+ },
933
+ "execution_timeout_seconds": null,
934
+ "execution_timeout_argument": null,
935
+ "execution_timeout_padding": 0.0
936
+ },
937
+ {
938
+ "name": "gateway",
939
+ "description": "Gateway control: restart and configuration management.",
940
+ "input_schema": {
941
+ "type": "object",
942
+ "properties": {
943
+ "action": {
944
+ "type": "string",
945
+ "description": "Action: restart, config_get, config_set"
946
+ },
947
+ "key": {
948
+ "type": "string",
949
+ "description": "Config key path (required for config_get and config_set)"
950
+ },
951
+ "value": {
952
+ "type": "string",
953
+ "description": "Config value as JSON string (required for config_set)"
954
+ }
955
+ },
956
+ "required": [
957
+ "action"
958
+ ]
959
+ },
960
+ "execution_timeout_seconds": null,
961
+ "execution_timeout_argument": null,
962
+ "execution_timeout_padding": 0.0
963
+ },
964
+ {
965
+ "name": "git_commit",
966
+ "description": "Stage specified files (or all changes) and create a commit.",
967
+ "input_schema": {
968
+ "type": "object",
969
+ "properties": {
970
+ "message": {
971
+ "type": "string",
972
+ "description": "Commit message."
973
+ },
974
+ "files": {
975
+ "type": "array",
976
+ "items": {
977
+ "type": "string"
978
+ },
979
+ "description": "Files to stage. If omitted, stages all changes (git add -A)."
980
+ },
981
+ "workdir": {
982
+ "type": "string",
983
+ "description": "Git repository directory (default: cwd)."
984
+ }
985
+ },
986
+ "required": [
987
+ "message"
988
+ ]
989
+ },
990
+ "execution_timeout_seconds": null,
991
+ "execution_timeout_argument": null,
992
+ "execution_timeout_padding": 0.0
993
+ },
994
+ {
995
+ "name": "git_diff",
996
+ "description": "Show git diff (staged + unstaged changes).",
997
+ "input_schema": {
998
+ "type": "object",
999
+ "properties": {
1000
+ "path": {
1001
+ "type": "string",
1002
+ "description": "Limit diff to this path."
1003
+ },
1004
+ "staged": {
1005
+ "type": "boolean",
1006
+ "description": "Show only staged changes."
1007
+ },
1008
+ "workdir": {
1009
+ "type": "string",
1010
+ "description": "Git repository directory (default: cwd)."
1011
+ }
1012
+ },
1013
+ "required": []
1014
+ },
1015
+ "execution_timeout_seconds": null,
1016
+ "execution_timeout_argument": null,
1017
+ "execution_timeout_padding": 0.0
1018
+ },
1019
+ {
1020
+ "name": "git_log",
1021
+ "description": "Show recent git commit log.",
1022
+ "input_schema": {
1023
+ "type": "object",
1024
+ "properties": {
1025
+ "count": {
1026
+ "type": "integer",
1027
+ "description": "Number of commits to show (default 10)."
1028
+ },
1029
+ "workdir": {
1030
+ "type": "string",
1031
+ "description": "Git repository directory (default: cwd)."
1032
+ }
1033
+ },
1034
+ "required": []
1035
+ },
1036
+ "execution_timeout_seconds": null,
1037
+ "execution_timeout_argument": null,
1038
+ "execution_timeout_padding": 0.0
1039
+ },
1040
+ {
1041
+ "name": "git_status",
1042
+ "description": "Show the working tree status.",
1043
+ "input_schema": {
1044
+ "type": "object",
1045
+ "properties": {
1046
+ "workdir": {
1047
+ "type": "string",
1048
+ "description": "Git repository directory (default: cwd)."
1049
+ }
1050
+ },
1051
+ "required": []
1052
+ },
1053
+ "execution_timeout_seconds": null,
1054
+ "execution_timeout_argument": null,
1055
+ "execution_timeout_padding": 0.0
1056
+ },
1057
+ {
1058
+ "name": "glob_search",
1059
+ "description": "Find files matching a glob pattern.",
1060
+ "input_schema": {
1061
+ "type": "object",
1062
+ "properties": {
1063
+ "pattern": {
1064
+ "type": "string",
1065
+ "description": "Glob pattern (e.g. '**/*.py')."
1066
+ },
1067
+ "path": {
1068
+ "type": "string",
1069
+ "description": "Base directory to search from (default: cwd)."
1070
+ }
1071
+ },
1072
+ "required": [
1073
+ "pattern"
1074
+ ]
1075
+ },
1076
+ "execution_timeout_seconds": null,
1077
+ "execution_timeout_argument": null,
1078
+ "execution_timeout_padding": 0.0
1079
+ },
1080
+ {
1081
+ "name": "grep_search",
1082
+ "description": "Search file contents for a regex pattern.",
1083
+ "input_schema": {
1084
+ "type": "object",
1085
+ "properties": {
1086
+ "pattern": {
1087
+ "type": "string",
1088
+ "description": "Regex pattern to search for."
1089
+ },
1090
+ "path": {
1091
+ "type": "string",
1092
+ "description": "File or directory to search (default: cwd)."
1093
+ },
1094
+ "include": {
1095
+ "type": "string",
1096
+ "description": "Glob pattern to filter files (e.g. '*.py')."
1097
+ },
1098
+ "max_results": {
1099
+ "type": "integer",
1100
+ "description": "Maximum number of matches to return (default 100)."
1101
+ }
1102
+ },
1103
+ "required": [
1104
+ "pattern"
1105
+ ]
1106
+ },
1107
+ "execution_timeout_seconds": null,
1108
+ "execution_timeout_argument": null,
1109
+ "execution_timeout_padding": 0.0
1110
+ },
1111
+ {
1112
+ "name": "http_request",
1113
+ "description": "Make an HTTP request. Use output_path to save a response under the workspace .fetch directory; otherwise responses are returned as bounded metadata.",
1114
+ "input_schema": {
1115
+ "type": "object",
1116
+ "properties": {
1117
+ "url": {
1118
+ "type": "string",
1119
+ "description": "HTTP or HTTPS URL."
1120
+ },
1121
+ "method": {
1122
+ "type": "string",
1123
+ "description": "HTTP method (default: GET)."
1124
+ },
1125
+ "headers": {
1126
+ "type": "object",
1127
+ "description": "Request headers.",
1128
+ "additionalProperties": {
1129
+ "type": "string"
1130
+ }
1131
+ },
1132
+ "body": {
1133
+ "type": "string",
1134
+ "description": "Request body (for POST/PUT/PATCH)."
1135
+ },
1136
+ "timeout": {
1137
+ "type": "number",
1138
+ "description": "Request timeout in seconds (default 30)."
1139
+ },
1140
+ "output_path": {
1141
+ "type": "string",
1142
+ "description": "Optional file name/path inside the workspace .fetch directory."
1143
+ }
1144
+ },
1145
+ "required": [
1146
+ "url"
1147
+ ]
1148
+ },
1149
+ "execution_timeout_seconds": null,
1150
+ "execution_timeout_argument": null,
1151
+ "execution_timeout_padding": 0.0
1152
+ },
1153
+ {
1154
+ "name": "image",
1155
+ "description": "Analyze an image using a vision-capable model. Accepts only a real local file path or HTTP(S) URL. Do not call this tool for images already attached to the current chat turn; use the attachment content directly. Returns the model's text analysis of the image.",
1156
+ "input_schema": {
1157
+ "type": "object",
1158
+ "properties": {
1159
+ "path": {
1160
+ "type": "string",
1161
+ "description": "Real local file path or HTTP(S) URL to the image. Do not pass a chat attachment display name or a filename visible inside a screenshot."
1162
+ },
1163
+ "prompt": {
1164
+ "type": "string",
1165
+ "description": "What to analyze or describe about the image."
1166
+ }
1167
+ },
1168
+ "required": [
1169
+ "path",
1170
+ "prompt"
1171
+ ]
1172
+ },
1173
+ "execution_timeout_seconds": 180.0,
1174
+ "execution_timeout_argument": null,
1175
+ "execution_timeout_padding": 0.0
1176
+ },
1177
+ {
1178
+ "name": "image_generate",
1179
+ "description": "Generate an image from a text prompt using a configured image provider. On web and channel surfaces, the generated image is registered as an artifact for that surface to deliver; do not call publish_artifact again for the returned path. For code, HTML, SVG, canvas, or screenshot based image artifacts, use the appropriate code/runtime/rendering tool instead.",
1180
+ "input_schema": {
1181
+ "type": "object",
1182
+ "properties": {
1183
+ "prompt": {
1184
+ "type": "string",
1185
+ "description": "Text description of the image to generate."
1186
+ },
1187
+ "size": {
1188
+ "type": "string",
1189
+ "description": "Image dimensions. One of \"1024x1024\", \"1536x1024\", \"1024x1536\".",
1190
+ "enum": [
1191
+ "1024x1024",
1192
+ "1536x1024",
1193
+ "1024x1536"
1194
+ ]
1195
+ },
1196
+ "model": {
1197
+ "type": "string",
1198
+ "description": "Optional provider/model identifier, e.g. \"openai/gpt-image-1\"."
1199
+ },
1200
+ "filename": {
1201
+ "type": "string",
1202
+ "description": "Optional output filename or relative path."
1203
+ }
1204
+ },
1205
+ "required": [
1206
+ "prompt"
1207
+ ]
1208
+ },
1209
+ "execution_timeout_seconds": null,
1210
+ "execution_timeout_argument": null,
1211
+ "execution_timeout_padding": 0.0
1212
+ },
1213
+ {
1214
+ "name": "install_skill_deps",
1215
+ "description": "Preview or install a skill dependency declared in skill metadata. Supports brew, node, go, and uv install specs. This does not install Community skills; use skill_install_community for ClawHub installs.",
1216
+ "input_schema": {
1217
+ "type": "object",
1218
+ "properties": {
1219
+ "skill_name": {
1220
+ "type": "string",
1221
+ "description": "Exact skill name containing the install metadata."
1222
+ },
1223
+ "install_id": {
1224
+ "type": "string",
1225
+ "description": "Install spec id from the skill metadata install list."
1226
+ },
1227
+ "confirmed": {
1228
+ "type": "boolean",
1229
+ "description": "When false, return preview JSON. When true, execute argv.",
1230
+ "default": false
1231
+ }
1232
+ },
1233
+ "required": [
1234
+ "skill_name",
1235
+ "install_id"
1236
+ ]
1237
+ },
1238
+ "execution_timeout_seconds": null,
1239
+ "execution_timeout_argument": null,
1240
+ "execution_timeout_padding": 0.0
1241
+ },
1242
+ {
1243
+ "name": "list_dir",
1244
+ "description": "List directory contents with type and size.",
1245
+ "input_schema": {
1246
+ "type": "object",
1247
+ "properties": {
1248
+ "path": {
1249
+ "type": "string",
1250
+ "description": "Directory path to list."
1251
+ },
1252
+ "approval_id": {
1253
+ "type": "string",
1254
+ "description": "Approval record to consume after granting sandbox path access."
1255
+ }
1256
+ },
1257
+ "required": [
1258
+ "path"
1259
+ ]
1260
+ },
1261
+ "execution_timeout_seconds": null,
1262
+ "execution_timeout_argument": null,
1263
+ "execution_timeout_padding": 0.0
1264
+ },
1265
+ {
1266
+ "name": "memory_get",
1267
+ "description": "Read curated memory source files (MEMORY.md or memory/**/*.md) with optional from/lines. Use after memory_search for curated file results; indexed sessions source results are virtual snippets and are not readable with memory_get.",
1268
+ "input_schema": {
1269
+ "type": "object",
1270
+ "properties": {
1271
+ "path": {
1272
+ "type": "string",
1273
+ "description": "Workspace-relative memory source path: MEMORY.md or memory/**/*.md"
1274
+ },
1275
+ "from": {
1276
+ "type": "integer",
1277
+ "description": "Start from this line (1-indexed, optional)"
1278
+ },
1279
+ "from_line": {
1280
+ "type": "integer",
1281
+ "description": "Compatibility alias for from (1-indexed, optional)"
1282
+ },
1283
+ "lines": {
1284
+ "type": "integer",
1285
+ "description": "Number of lines to return (optional)"
1286
+ }
1287
+ },
1288
+ "required": [
1289
+ "path"
1290
+ ]
1291
+ },
1292
+ "execution_timeout_seconds": null,
1293
+ "execution_timeout_argument": null,
1294
+ "execution_timeout_padding": 0.0
1295
+ },
1296
+ {
1297
+ "name": "memory_search",
1298
+ "description": "Recall step for prior work, decisions, dated history, todos, and historical memory not already present in injected context. By default, searches curated memory source files (MEMORY.md + memory/**/*.md). It does not search raw turn captures or raw fallback files. Returns top snippets with source, path, and lines. Use memory_get only for source=memory results; source=sessions results are virtual snippets. Set source=memory for curated decisions/facts, source=sessions for indexed transcript snippets when session source is enabled, or source=all for both. Use session_search only when exact transcript full-text search is needed. User identity/profile fields such as name, preferred address, pronouns, and timezone belong in injected USER.md when present. Do not use memory_search for current user identity/profile questions when injected USER.md contains the answer.",
1299
+ "input_schema": {
1300
+ "type": "object",
1301
+ "properties": {
1302
+ "query": {
1303
+ "type": "string",
1304
+ "description": "Search query"
1305
+ },
1306
+ "max_results": {
1307
+ "type": "integer",
1308
+ "description": "Maximum results to return (default 6, clamped to 1-20)"
1309
+ },
1310
+ "min_score": {
1311
+ "type": "number",
1312
+ "description": "Minimum score to return (default 0.35, clamped to 0-1)"
1313
+ },
1314
+ "source": {
1315
+ "type": "string",
1316
+ "description": "Search source: 'memory' (default), 'sessions', or 'all'"
1317
+ }
1318
+ },
1319
+ "required": [
1320
+ "query"
1321
+ ]
1322
+ },
1323
+ "execution_timeout_seconds": null,
1324
+ "execution_timeout_argument": null,
1325
+ "execution_timeout_padding": 0.0
1326
+ },
1327
+ {
1328
+ "name": "meta_invoke",
1329
+ "description": "Run a meta-skill end-to-end. Meta-skills are multi-step DAGs (search → ingest → draft → compile, etc.) where the framework runs sub-skills. Call this tool with the exact name of a <skill kind='meta'> entry from <available_skills>. Do NOT invent names. Do NOT call skill_view for sub-skills inside the meta-skill — the framework loads them automatically. Do not emit preamble before calling this tool. On success, the meta-skill's deliverable becomes the assistant's response for this turn (no further model commentary). On failure, you receive a structured payload with the failed step, partial outputs, and recovery hints; decide whether to retry, switch approach, or ask the user.",
1330
+ "input_schema": {
1331
+ "type": "object",
1332
+ "properties": {
1333
+ "name": {
1334
+ "type": "string",
1335
+ "description": "Exact meta-skill name from <available_skills> kind='meta' entries"
1336
+ }
1337
+ },
1338
+ "required": [
1339
+ "name"
1340
+ ]
1341
+ },
1342
+ "execution_timeout_seconds": null,
1343
+ "execution_timeout_argument": null,
1344
+ "execution_timeout_padding": 0.0
1345
+ },
1346
+ {
1347
+ "name": "music_generate",
1348
+ "description": "Generate instrumental music through ElevenLabs.",
1349
+ "input_schema": {
1350
+ "type": "object",
1351
+ "properties": {
1352
+ "prompt": {
1353
+ "type": "string",
1354
+ "description": "Music prompt."
1355
+ },
1356
+ "style": {
1357
+ "type": "string",
1358
+ "description": "Optional style hint."
1359
+ },
1360
+ "duration_seconds": {
1361
+ "type": "number",
1362
+ "description": "Optional duration."
1363
+ },
1364
+ "output_path": {
1365
+ "type": "string",
1366
+ "description": "Optional output audio path."
1367
+ }
1368
+ },
1369
+ "required": [
1370
+ "prompt"
1371
+ ]
1372
+ },
1373
+ "execution_timeout_seconds": null,
1374
+ "execution_timeout_argument": null,
1375
+ "execution_timeout_padding": 0.0
1376
+ },
1377
+ {
1378
+ "name": "pdf",
1379
+ "description": "Extract text from a PDF file, optionally filtered by page range. If a prompt is supplied, the extracted text is sent to the LLM for analysis.",
1380
+ "input_schema": {
1381
+ "type": "object",
1382
+ "properties": {
1383
+ "path": {
1384
+ "type": "string",
1385
+ "description": "File path to the PDF."
1386
+ },
1387
+ "pages": {
1388
+ "type": "string",
1389
+ "description": "Page range to extract: \"1-5\", \"3\", or \"1,3,5-10\". Omit for all pages."
1390
+ },
1391
+ "prompt": {
1392
+ "type": "string",
1393
+ "description": "Optional analysis prompt. Sends extracted text to the LLM."
1394
+ }
1395
+ },
1396
+ "required": [
1397
+ "path"
1398
+ ]
1399
+ },
1400
+ "execution_timeout_seconds": null,
1401
+ "execution_timeout_argument": null,
1402
+ "execution_timeout_padding": 0.0
1403
+ },
1404
+ {
1405
+ "name": "process",
1406
+ "description": "Manage background_process sessions created by OpenSquilla. To await a long-running background command, call action='wait' (blocks until it exits or the timeout elapses) instead of polling in a loop.",
1407
+ "input_schema": {
1408
+ "type": "object",
1409
+ "properties": {
1410
+ "action": {
1411
+ "type": "string",
1412
+ "description": "Action: list, poll, wait, log, kill, remove, write, submit, eof."
1413
+ },
1414
+ "session_id": {
1415
+ "type": "string",
1416
+ "description": "Target background_process session id."
1417
+ },
1418
+ "sessionId": {
1419
+ "type": "string",
1420
+ "description": "Compatibility alias for session_id."
1421
+ },
1422
+ "data": {
1423
+ "type": "string",
1424
+ "description": "Data to write to stdin. submit appends a newline."
1425
+ },
1426
+ "offset": {
1427
+ "type": "integer",
1428
+ "description": "For log, character offset to start reading from."
1429
+ },
1430
+ "limit": {
1431
+ "type": "integer",
1432
+ "description": "For log, maximum characters to return."
1433
+ },
1434
+ "timeout": {
1435
+ "type": "number",
1436
+ "description": "For wait: max seconds to block for the process to exit (default 600, max 5400). On timeout, returns with the process still running so you can wait again."
1437
+ }
1438
+ },
1439
+ "required": [
1440
+ "action"
1441
+ ]
1442
+ },
1443
+ "execution_timeout_seconds": 5405.0,
1444
+ "execution_timeout_argument": "timeout",
1445
+ "execution_timeout_padding": 5.0
1446
+ },
1447
+ {
1448
+ "name": "publish_artifact",
1449
+ "description": "Register an existing workspace file as a generated artifact for the current surface. Only files inside the active workspace are allowed. The active surface handles download chips or native channel delivery; do not include any URL in your reply — just confirm the file is ready.",
1450
+ "input_schema": {
1451
+ "type": "object",
1452
+ "properties": {
1453
+ "path": {
1454
+ "type": "string",
1455
+ "description": "Workspace-relative or in-workspace absolute path to publish."
1456
+ },
1457
+ "name": {
1458
+ "type": "string",
1459
+ "description": "Optional download filename. Defaults to the source filename."
1460
+ },
1461
+ "mime": {
1462
+ "type": "string",
1463
+ "description": "Optional MIME type. Defaults to a filename guess."
1464
+ }
1465
+ },
1466
+ "required": [
1467
+ "path"
1468
+ ]
1469
+ },
1470
+ "execution_timeout_seconds": null,
1471
+ "execution_timeout_argument": null,
1472
+ "execution_timeout_padding": 0.0
1473
+ },
1474
+ {
1475
+ "name": "read_file",
1476
+ "description": "Read UTF-8 text file contents with line numbers. Supports offset and limit. For CSV/TSV/Excel workbook data, use read_spreadsheet.",
1477
+ "input_schema": {
1478
+ "type": "object",
1479
+ "properties": {
1480
+ "path": {
1481
+ "type": "string",
1482
+ "description": "Absolute path to the file."
1483
+ },
1484
+ "offset": {
1485
+ "type": "integer",
1486
+ "description": "Line offset to start reading from (1-indexed)."
1487
+ },
1488
+ "limit": {
1489
+ "type": "integer",
1490
+ "description": "Maximum number of lines to read."
1491
+ }
1492
+ },
1493
+ "required": [
1494
+ "path"
1495
+ ]
1496
+ },
1497
+ "execution_timeout_seconds": null,
1498
+ "execution_timeout_argument": null,
1499
+ "execution_timeout_padding": 0.0
1500
+ },
1501
+ {
1502
+ "name": "read_spreadsheet",
1503
+ "description": "Read CSV, TSV, or Excel .xlsx files as structured text tables. When reading .xlsx, all sheets are returned by default; pass sheet as a sheet name or 1-based index to read one sheet.",
1504
+ "input_schema": {
1505
+ "type": "object",
1506
+ "properties": {
1507
+ "path": {
1508
+ "type": "string",
1509
+ "description": "Path to a .csv, .tsv, or .xlsx file."
1510
+ },
1511
+ "sheet": {
1512
+ "type": "string",
1513
+ "description": "Optional sheet name or 1-based sheet index for .xlsx files."
1514
+ },
1515
+ "offset": {
1516
+ "type": "integer",
1517
+ "description": "Row offset to start reading from (1-indexed, default 1)."
1518
+ },
1519
+ "limit": {
1520
+ "type": "integer",
1521
+ "description": "Maximum rows per sheet to return (default 200)."
1522
+ }
1523
+ },
1524
+ "required": [
1525
+ "path"
1526
+ ]
1527
+ },
1528
+ "execution_timeout_seconds": null,
1529
+ "execution_timeout_argument": null,
1530
+ "execution_timeout_padding": 0.0
1531
+ },
1532
+ {
1533
+ "name": "router_control",
1534
+ "description": "Control the Squilla router for this session. Use only when the user asks to switch to a configured route or restore automatic routing.",
1535
+ "input_schema": {
1536
+ "type": "object",
1537
+ "properties": {
1538
+ "action": {
1539
+ "type": "string",
1540
+ "enum": [
1541
+ "set_hold",
1542
+ "clear_hold"
1543
+ ],
1544
+ "description": "Set a short-lived router hold or clear it."
1545
+ },
1546
+ "target_id": {
1547
+ "type": "string",
1548
+ "description": "Canonical target id from the router-control menu.",
1549
+ "enum": [
1550
+ "tier:c0",
1551
+ "tier:c1",
1552
+ "tier:c2",
1553
+ "tier:c3"
1554
+ ]
1555
+ },
1556
+ "evidence": {
1557
+ "type": "string",
1558
+ "description": "Short excerpt from the user message that requested the switch."
1559
+ },
1560
+ "reason": {
1561
+ "type": "string",
1562
+ "description": "Optional concise reason for observability."
1563
+ }
1564
+ },
1565
+ "required": [
1566
+ "action",
1567
+ "evidence"
1568
+ ]
1569
+ },
1570
+ "execution_timeout_seconds": null,
1571
+ "execution_timeout_argument": null,
1572
+ "execution_timeout_padding": 0.0
1573
+ },
1574
+ {
1575
+ "name": "session_search",
1576
+ "description": "Full-text search across persisted session transcripts. Returns matching excerpts with session context. Use when exact prior chat wording, transcript context, or code snippets from persisted sessions are needed. Ordinary recall should start with memory_search, which defaults to curated memory source files. To search indexed session snippets through memory_search, use source=sessions or source=all. session_search does not search MEMORY.md or memory/**/*.md.",
1577
+ "input_schema": {
1578
+ "type": "object",
1579
+ "properties": {
1580
+ "query": {
1581
+ "type": "string",
1582
+ "description": "Search query - natural language terms to find in transcripts."
1583
+ },
1584
+ "session_id": {
1585
+ "type": "string",
1586
+ "description": "Optional: restrict search to a specific session ID."
1587
+ },
1588
+ "limit": {
1589
+ "type": "integer",
1590
+ "description": "Max results to return (1-50, default 20)."
1591
+ }
1592
+ },
1593
+ "required": [
1594
+ "query"
1595
+ ]
1596
+ },
1597
+ "execution_timeout_seconds": null,
1598
+ "execution_timeout_argument": null,
1599
+ "execution_timeout_padding": 0.0
1600
+ },
1601
+ {
1602
+ "name": "session_status",
1603
+ "description": "Show current session usage, cost, and model information.",
1604
+ "input_schema": {
1605
+ "type": "object",
1606
+ "properties": {},
1607
+ "required": []
1608
+ },
1609
+ "execution_timeout_seconds": null,
1610
+ "execution_timeout_argument": null,
1611
+ "execution_timeout_padding": 0.0
1612
+ },
1613
+ {
1614
+ "name": "sessions_history",
1615
+ "description": "Retrieve conversation history from a session's transcript.",
1616
+ "input_schema": {
1617
+ "type": "object",
1618
+ "properties": {
1619
+ "session_key": {
1620
+ "type": "string",
1621
+ "description": "Session key to read history from"
1622
+ },
1623
+ "limit": {
1624
+ "type": "integer",
1625
+ "description": "Max messages to return (1-100)",
1626
+ "default": 20
1627
+ }
1628
+ },
1629
+ "required": [
1630
+ "session_key"
1631
+ ]
1632
+ },
1633
+ "execution_timeout_seconds": null,
1634
+ "execution_timeout_argument": null,
1635
+ "execution_timeout_padding": 0.0
1636
+ },
1637
+ {
1638
+ "name": "sessions_list",
1639
+ "description": "List active sessions with optional filters.",
1640
+ "input_schema": {
1641
+ "type": "object",
1642
+ "properties": {
1643
+ "agent_id": {
1644
+ "type": "string",
1645
+ "description": "Filter by agent ID"
1646
+ },
1647
+ "status": {
1648
+ "type": "string",
1649
+ "description": "Filter by status: running, done, failed, killed, timeout"
1650
+ },
1651
+ "limit": {
1652
+ "type": "integer",
1653
+ "description": "Max entries to return (1-200)",
1654
+ "default": 50
1655
+ }
1656
+ },
1657
+ "required": []
1658
+ },
1659
+ "execution_timeout_seconds": null,
1660
+ "execution_timeout_argument": null,
1661
+ "execution_timeout_padding": 0.0
1662
+ },
1663
+ {
1664
+ "name": "skill_create",
1665
+ "description": "Create a new local authored skill in the workspace layer. Writes a SKILL.md file with frontmatter and body content. Do not use this for Community or ClawHub installs.",
1666
+ "input_schema": {
1667
+ "type": "object",
1668
+ "properties": {
1669
+ "name": {
1670
+ "type": "string",
1671
+ "description": "Skill name (lowercase, hyphens allowed, e.g. 'my-helper')."
1672
+ },
1673
+ "description": {
1674
+ "type": "string",
1675
+ "description": "One-line description of what the skill does."
1676
+ },
1677
+ "content": {
1678
+ "type": "string",
1679
+ "description": "Skill body content (markdown)."
1680
+ },
1681
+ "triggers": {
1682
+ "type": "array",
1683
+ "items": {
1684
+ "type": "string"
1685
+ },
1686
+ "description": "Optional trigger phrases for auto-activation."
1687
+ }
1688
+ },
1689
+ "required": [
1690
+ "name",
1691
+ "description",
1692
+ "content"
1693
+ ]
1694
+ },
1695
+ "execution_timeout_seconds": null,
1696
+ "execution_timeout_argument": null,
1697
+ "execution_timeout_padding": 0.0
1698
+ },
1699
+ {
1700
+ "name": "skill_delete",
1701
+ "description": "Delete a skill from the workspace layer. Cannot delete bundled or managed skills.",
1702
+ "input_schema": {
1703
+ "type": "object",
1704
+ "properties": {
1705
+ "name": {
1706
+ "type": "string",
1707
+ "description": "Exact name of the skill to delete."
1708
+ }
1709
+ },
1710
+ "required": [
1711
+ "name"
1712
+ ]
1713
+ },
1714
+ "execution_timeout_seconds": null,
1715
+ "execution_timeout_argument": null,
1716
+ "execution_timeout_padding": 0.0
1717
+ },
1718
+ {
1719
+ "name": "skill_edit",
1720
+ "description": "Edit an existing skill's content or description. Only workspace-layer skills can be edited.",
1721
+ "input_schema": {
1722
+ "type": "object",
1723
+ "properties": {
1724
+ "name": {
1725
+ "type": "string",
1726
+ "description": "Exact name of the skill to edit."
1727
+ },
1728
+ "content": {
1729
+ "type": "string",
1730
+ "description": "New body content (replaces existing)."
1731
+ },
1732
+ "description": {
1733
+ "type": "string",
1734
+ "description": "New description (optional, keeps existing if omitted)."
1735
+ },
1736
+ "triggers": {
1737
+ "type": "array",
1738
+ "items": {
1739
+ "type": "string"
1740
+ },
1741
+ "description": "New trigger list (optional, keeps existing if omitted)."
1742
+ }
1743
+ },
1744
+ "required": [
1745
+ "name"
1746
+ ]
1747
+ },
1748
+ "execution_timeout_seconds": null,
1749
+ "execution_timeout_argument": null,
1750
+ "execution_timeout_padding": 0.0
1751
+ },
1752
+ {
1753
+ "name": "skill_install_community",
1754
+ "description": "Install a Community skill from ClawHub or another configured source. Use only when the user clearly asked to install a specific skill identifier or chose one exact result from skill_search_community. Do not use skill_create for Community installs.",
1755
+ "input_schema": {
1756
+ "type": "object",
1757
+ "properties": {
1758
+ "identifier": {
1759
+ "type": "string",
1760
+ "description": "Exact source identifier or slug returned by skill_search_community."
1761
+ },
1762
+ "source": {
1763
+ "type": "string",
1764
+ "description": "Source id, usually 'clawhub'.",
1765
+ "default": "clawhub"
1766
+ },
1767
+ "force": {
1768
+ "type": "boolean",
1769
+ "description": "Override a dangerous security scan only after the user explicitly asks.",
1770
+ "default": false
1771
+ }
1772
+ },
1773
+ "required": [
1774
+ "identifier"
1775
+ ]
1776
+ },
1777
+ "execution_timeout_seconds": null,
1778
+ "execution_timeout_argument": null,
1779
+ "execution_timeout_padding": 0.0
1780
+ },
1781
+ {
1782
+ "name": "skill_list",
1783
+ "description": "List all available skills with name, description, and eligibility.",
1784
+ "input_schema": {
1785
+ "type": "object",
1786
+ "properties": {},
1787
+ "required": []
1788
+ },
1789
+ "execution_timeout_seconds": null,
1790
+ "execution_timeout_argument": null,
1791
+ "execution_timeout_padding": 0.0
1792
+ },
1793
+ {
1794
+ "name": "skill_search_community",
1795
+ "description": "Search Community skill sources such as ClawHub. Use this when the user asks to find, search, browse, or locate installable skills from the community marketplace.",
1796
+ "input_schema": {
1797
+ "type": "object",
1798
+ "properties": {
1799
+ "query": {
1800
+ "type": "string",
1801
+ "description": "Search query for Community skills."
1802
+ },
1803
+ "source": {
1804
+ "type": "string",
1805
+ "description": "Source id to search, usually 'clawhub'. Use 'all' to search all sources.",
1806
+ "default": "clawhub"
1807
+ },
1808
+ "limit": {
1809
+ "type": "integer",
1810
+ "description": "Maximum number of results to return.",
1811
+ "default": 10
1812
+ }
1813
+ },
1814
+ "required": [
1815
+ "query"
1816
+ ]
1817
+ },
1818
+ "execution_timeout_seconds": null,
1819
+ "execution_timeout_argument": null,
1820
+ "execution_timeout_padding": 0.0
1821
+ },
1822
+ {
1823
+ "name": "skill_view",
1824
+ "description": "Read a skill's SKILL.md content by name. Optionally read a supporting file.",
1825
+ "input_schema": {
1826
+ "type": "object",
1827
+ "properties": {
1828
+ "name": {
1829
+ "type": "string",
1830
+ "description": "Exact skill name to view"
1831
+ },
1832
+ "file_path": {
1833
+ "type": "string",
1834
+ "description": "Optional sub-file path (references/, scripts/)"
1835
+ }
1836
+ },
1837
+ "required": [
1838
+ "name"
1839
+ ]
1840
+ },
1841
+ "execution_timeout_seconds": null,
1842
+ "execution_timeout_argument": null,
1843
+ "execution_timeout_padding": 0.0
1844
+ },
1845
+ {
1846
+ "name": "song_generate",
1847
+ "description": "Generate a song with sung vocals through ElevenLabs music generation.",
1848
+ "input_schema": {
1849
+ "type": "object",
1850
+ "properties": {
1851
+ "lyrics": {
1852
+ "type": "string",
1853
+ "description": "Original lyrics to sing."
1854
+ },
1855
+ "vocal_style": {
1856
+ "type": "string",
1857
+ "description": "Optional vocal style."
1858
+ },
1859
+ "backing_style": {
1860
+ "type": "string",
1861
+ "description": "Optional backing style."
1862
+ },
1863
+ "duration_seconds": {
1864
+ "type": "number",
1865
+ "description": "Optional duration."
1866
+ },
1867
+ "output_path": {
1868
+ "type": "string",
1869
+ "description": "Optional output audio path."
1870
+ }
1871
+ },
1872
+ "required": [
1873
+ "lyrics"
1874
+ ]
1875
+ },
1876
+ "execution_timeout_seconds": null,
1877
+ "execution_timeout_argument": null,
1878
+ "execution_timeout_padding": 0.0
1879
+ },
1880
+ {
1881
+ "name": "tts",
1882
+ "description": "Synthesize text to speech audio using a TTS provider. Returns an explicit not_available envelope when no TTS provider is configured.",
1883
+ "input_schema": {
1884
+ "type": "object",
1885
+ "properties": {
1886
+ "text": {
1887
+ "type": "string",
1888
+ "description": "Text to synthesize (max 4096 characters)."
1889
+ },
1890
+ "voice": {
1891
+ "type": "string",
1892
+ "description": "ElevenLabs voice identifier. Uses audio.tts.voice when omitted."
1893
+ },
1894
+ "output_path": {
1895
+ "type": "string",
1896
+ "description": "Output file path. Auto-generated if omitted."
1897
+ },
1898
+ "language_code": {
1899
+ "type": "string",
1900
+ "description": "Optional BCP-47 language/locale hint such as zh, zh-CN, en-US, en-GB, ja-JP, ko-KR, es-MX, or fr-FR."
1901
+ },
1902
+ "speed": {
1903
+ "type": "number",
1904
+ "description": "Playback speed multiplier (0.25 to 4.0, default 1.0).",
1905
+ "minimum": 0.25,
1906
+ "maximum": 4.0
1907
+ },
1908
+ "stability": {
1909
+ "type": "number",
1910
+ "description": "Optional ElevenLabs stability voice setting (0.0 to 1.0).",
1911
+ "minimum": 0.0,
1912
+ "maximum": 1.0
1913
+ },
1914
+ "similarity_boost": {
1915
+ "type": "number",
1916
+ "description": "Optional ElevenLabs similarity boost voice setting (0.0 to 1.0).",
1917
+ "minimum": 0.0,
1918
+ "maximum": 1.0
1919
+ },
1920
+ "style": {
1921
+ "type": "number",
1922
+ "description": "Optional ElevenLabs style exaggeration setting (0.0 to 1.0).",
1923
+ "minimum": 0.0,
1924
+ "maximum": 1.0
1925
+ },
1926
+ "use_speaker_boost": {
1927
+ "type": "boolean",
1928
+ "description": "Optional ElevenLabs speaker boost setting."
1929
+ }
1930
+ },
1931
+ "required": [
1932
+ "text"
1933
+ ]
1934
+ },
1935
+ "execution_timeout_seconds": null,
1936
+ "execution_timeout_argument": null,
1937
+ "execution_timeout_padding": 0.0
1938
+ },
1939
+ {
1940
+ "name": "voice_clone",
1941
+ "description": "Clone a voice from a local audio sample through ElevenLabs. Requires explicit consent_metadata for the sampled speaker.",
1942
+ "input_schema": {
1943
+ "type": "object",
1944
+ "properties": {
1945
+ "sample_audio": {
1946
+ "type": "string",
1947
+ "description": "Local audio sample path."
1948
+ },
1949
+ "name": {
1950
+ "type": "string",
1951
+ "description": "Name for the cloned voice."
1952
+ },
1953
+ "description": {
1954
+ "type": "string",
1955
+ "description": "Optional voice description."
1956
+ },
1957
+ "consent_metadata": {
1958
+ "type": "object",
1959
+ "description": "Consent proof, e.g. {'speaker': 'me', 'consent': true}."
1960
+ }
1961
+ },
1962
+ "required": [
1963
+ "sample_audio",
1964
+ "name"
1965
+ ]
1966
+ },
1967
+ "execution_timeout_seconds": null,
1968
+ "execution_timeout_argument": null,
1969
+ "execution_timeout_padding": 0.0
1970
+ },
1971
+ {
1972
+ "name": "voice_convert",
1973
+ "description": "Convert a local source audio file into a target ElevenLabs voice. Requires explicit consent_metadata for the source speaker.",
1974
+ "input_schema": {
1975
+ "type": "object",
1976
+ "properties": {
1977
+ "source_audio": {
1978
+ "type": "string",
1979
+ "description": "Local source audio path."
1980
+ },
1981
+ "target_voice": {
1982
+ "type": "string",
1983
+ "description": "ElevenLabs target voice id."
1984
+ },
1985
+ "output_path": {
1986
+ "type": "string",
1987
+ "description": "Optional output audio path."
1988
+ },
1989
+ "consent_metadata": {
1990
+ "type": "object",
1991
+ "description": "Consent proof, e.g. {'speaker': 'me', 'consent': true}."
1992
+ }
1993
+ },
1994
+ "required": [
1995
+ "source_audio",
1996
+ "target_voice"
1997
+ ]
1998
+ },
1999
+ "execution_timeout_seconds": null,
2000
+ "execution_timeout_argument": null,
2001
+ "execution_timeout_padding": 0.0
2002
+ },
2003
+ {
2004
+ "name": "voice_search",
2005
+ "description": "Search ElevenLabs shared voices by language, locale, accent, gender, age, category, or free-text query before choosing a voice for TTS.",
2006
+ "input_schema": {
2007
+ "type": "object",
2008
+ "properties": {
2009
+ "language": {
2010
+ "type": "string",
2011
+ "description": "Language code such as zh, en, ja, ko, fr, de, es, or pt."
2012
+ },
2013
+ "accent": {
2014
+ "type": "string",
2015
+ "description": "Desired accent label, e.g. beijing mandarin, british, american, mexican, taiwan mandarin."
2016
+ },
2017
+ "locale": {
2018
+ "type": "string",
2019
+ "description": "Optional locale hint such as zh-CN, zh-TW, en-GB, or es-MX."
2020
+ },
2021
+ "gender": {
2022
+ "type": "string",
2023
+ "description": "Optional gender filter."
2024
+ },
2025
+ "age": {
2026
+ "type": "string",
2027
+ "description": "Optional age filter."
2028
+ },
2029
+ "category": {
2030
+ "type": "string",
2031
+ "description": "Optional voice category filter."
2032
+ },
2033
+ "search": {
2034
+ "type": "string",
2035
+ "description": "Optional free-text search query."
2036
+ },
2037
+ "page_size": {
2038
+ "type": "integer",
2039
+ "description": "Number of voices to return (1 to 50, default 10).",
2040
+ "minimum": 1,
2041
+ "maximum": 50
2042
+ }
2043
+ },
2044
+ "required": []
2045
+ },
2046
+ "execution_timeout_seconds": null,
2047
+ "execution_timeout_argument": null,
2048
+ "execution_timeout_padding": 0.0
2049
+ },
2050
+ {
2051
+ "name": "web_discover",
2052
+ "description": "Lightweight web link discovery that returns titles, URLs, and snippets.",
2053
+ "input_schema": {
2054
+ "type": "object",
2055
+ "properties": {
2056
+ "query": {
2057
+ "type": "string",
2058
+ "description": "Search query."
2059
+ },
2060
+ "max_results": {
2061
+ "type": "integer",
2062
+ "description": "Maximum number of results to return."
2063
+ }
2064
+ },
2065
+ "required": [
2066
+ "query"
2067
+ ]
2068
+ },
2069
+ "execution_timeout_seconds": null,
2070
+ "execution_timeout_argument": null,
2071
+ "execution_timeout_padding": 0.0
2072
+ },
2073
+ {
2074
+ "name": "web_fetch",
2075
+ "description": "Fetch a URL and extract readable content as markdown or plain text. Uses a multi-extractor pipeline (readability → Firecrawl escalation → html2text). Includes SSRF protection and a 15-minute response cache.",
2076
+ "input_schema": {
2077
+ "type": "object",
2078
+ "properties": {
2079
+ "url": {
2080
+ "type": "string",
2081
+ "description": "HTTP or HTTPS URL to fetch."
2082
+ },
2083
+ "extract_mode": {
2084
+ "type": "string",
2085
+ "description": "Extraction format: \"markdown\" (default) or \"text\".",
2086
+ "enum": [
2087
+ "markdown",
2088
+ "text"
2089
+ ]
2090
+ },
2091
+ "max_chars": {
2092
+ "type": "integer",
2093
+ "description": "Maximum characters to return (minimum 100). Defaults to 20,000 when omitted; override default with OPENSQUILLA_WEB_FETCH_MAX_CHARS.",
2094
+ "minimum": 100
2095
+ },
2096
+ "extractor": {
2097
+ "type": "string",
2098
+ "description": "Extractor preference: \"auto\" (default) or \"firecrawl\".",
2099
+ "enum": [
2100
+ "auto",
2101
+ "firecrawl"
2102
+ ]
2103
+ }
2104
+ },
2105
+ "required": [
2106
+ "url"
2107
+ ]
2108
+ },
2109
+ "execution_timeout_seconds": null,
2110
+ "execution_timeout_argument": null,
2111
+ "execution_timeout_padding": 0.0
2112
+ },
2113
+ {
2114
+ "name": "web_search",
2115
+ "description": "Source-backed web search for current information. Searches, deduplicates, and can fetch compact citation-ready excerpts from top sources.",
2116
+ "input_schema": {
2117
+ "type": "object",
2118
+ "properties": {
2119
+ "query": {
2120
+ "type": "string",
2121
+ "description": "Search query."
2122
+ },
2123
+ "mode": {
2124
+ "type": "string",
2125
+ "description": "Search mode.",
2126
+ "enum": [
2127
+ "auto",
2128
+ "news",
2129
+ "technical",
2130
+ "broad"
2131
+ ]
2132
+ },
2133
+ "max_results": {
2134
+ "type": "integer",
2135
+ "description": "Maximum number of deduplicated results to return."
2136
+ },
2137
+ "fetch_top_k": {
2138
+ "type": "integer",
2139
+ "description": "Number of top results to fetch for compact excerpts."
2140
+ },
2141
+ "max_chars_per_source": {
2142
+ "type": "integer",
2143
+ "description": "Maximum excerpt characters per source."
2144
+ },
2145
+ "include_domains": {
2146
+ "type": "array",
2147
+ "description": "Optional domains to include.",
2148
+ "items": {
2149
+ "type": "string"
2150
+ }
2151
+ },
2152
+ "exclude_domains": {
2153
+ "type": "array",
2154
+ "description": "Optional domains to exclude.",
2155
+ "items": {
2156
+ "type": "string"
2157
+ }
2158
+ },
2159
+ "recency": {
2160
+ "type": "string",
2161
+ "description": "Optional recency filter.",
2162
+ "enum": [
2163
+ "day",
2164
+ "week",
2165
+ "month",
2166
+ "year"
2167
+ ]
2168
+ },
2169
+ "provider": {
2170
+ "type": "string",
2171
+ "description": "Optional provider override.",
2172
+ "enum": [
2173
+ "auto",
2174
+ "bocha",
2175
+ "tavily",
2176
+ "brave",
2177
+ "duckduckgo",
2178
+ "exa"
2179
+ ]
2180
+ }
2181
+ },
2182
+ "required": [
2183
+ "query"
2184
+ ]
2185
+ },
2186
+ "execution_timeout_seconds": null,
2187
+ "execution_timeout_argument": null,
2188
+ "execution_timeout_padding": 0.0
2189
+ },
2190
+ {
2191
+ "name": "write_file",
2192
+ "description": "Write content to a file, creating directories as needed. For temporary scripts, logs, debug output, and candidate patches, use the configured scratch directory: $WORKSPACE_DIR.",
2193
+ "input_schema": {
2194
+ "type": "object",
2195
+ "properties": {
2196
+ "path": {
2197
+ "type": "string",
2198
+ "description": "Absolute path to write to."
2199
+ },
2200
+ "content": {
2201
+ "type": "string",
2202
+ "description": "File content to write."
2203
+ },
2204
+ "approval_id": {
2205
+ "type": "string",
2206
+ "description": "Sandbox path approval record for writes outside the workspace."
2207
+ }
2208
+ },
2209
+ "required": [
2210
+ "path",
2211
+ "content"
2212
+ ]
2213
+ },
2214
+ "execution_timeout_seconds": null,
2215
+ "execution_timeout_argument": null,
2216
+ "execution_timeout_padding": 0.0
2217
+ }
2218
+ ]
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/.opensquilla/workspace-state.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "version": 1,
3
+ "bootstrapSeededAt": 1787567832.193683
4
+ }
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/BOOTSTRAP.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Workspace Bootstrap
2
+
3
+ This is one-time internal setup guidance for a fresh workspace.
4
+
5
+ On the first useful conversation:
6
+
7
+ 1. Have a normal setup conversation. Ask only for details that make this
8
+ workspace useful: name, tone, preferences, stable context, and operating
9
+ boundaries.
10
+ 2. Do not ask the user to edit markdown files or paste a setup form. Keep the
11
+ exchange conversational, then save durable preferences and agent guidance
12
+ internally when the available tools and permissions allow it.
13
+ 3. If the user wants to continue without setup, proceed with the task and keep
14
+ any missing durable context unset.
15
+ 4. Once setup is complete, remove this one-shot bootstrap guide so it is not run
16
+ again.
17
+
18
+ Where to save durable setup results:
19
+
20
+ - `USER.md` for user profile and preferred address.
21
+ - `IDENTITY.md` for the assistant name or public-facing identity.
22
+ - `SOUL.md` for durable voice and interaction style.
23
+ - `AGENTS.md` for operating rules.
24
+ - `TOOLS.md` for local tool conventions.
25
+ - `MEMORY.md` or `memory/**/*.md` for long-term non-profile memory.
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/HEARTBEAT.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ # HEARTBEAT cadence tuning - edit values below, changes apply live.
3
+ coalesce_window_ms: 250
4
+ priority_bands:
5
+ high: 1.0
6
+ medium: 5.0
7
+ low: 30.0
8
+ active_hours: null
9
+ ---
10
+
11
+ # HEARTBEAT
12
+
13
+ Use this file for periodic heartbeat tasks and cadence configuration. Keep it
14
+ short: heartbeat runs may inject this file as live operating context.
15
+
16
+ Do not store user profile facts, assistant persona, durable memory, or ordinary
17
+ task history here.
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/USER.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # USER.md
2
+
3
+ Use this file for stable user profile notes that are safe to include in private
4
+ agent context.
5
+
6
+ Put facts about the user here, not facts about the assistant or the current
7
+ task.
8
+
9
+ - Name:
10
+ - What to call them:
11
+ - Pronouns:
12
+ - Timezone:
13
+ - Notes:
14
+
15
+ ## Context
16
+
17
+ Do not put secrets, credentials, or one-off task notes here.
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/assemble.py ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Assemble a finished 240s episode: concat clips in order, mix dialogue+announcer,
3
+ apply SRT subtitles, output 16:9 MP4. Output must run the full 4:00."""
4
+ import os, json, sys, subprocess, csv, shlex
5
+
6
+ FFMPEG = "ffmpeg"
7
+ ROOT = os.path.dirname(os.path.abspath(__file__))
8
+
9
+ def run(cmd, **kw):
10
+ r = subprocess.run(cmd, capture_output=True, text=True, **kw)
11
+ if r.returncode != 0:
12
+ raise RuntimeError("CMD FAILED: " + " ".join(cmd) + "\n" + r.stderr[-1500:])
13
+ return r.stdout
14
+
15
+ def fmt_ts(seconds):
16
+ h = int(seconds // 3600); m = int((seconds % 3600) // 60)
17
+ s = seconds % 60
18
+ return f"{h:02d}:{m:02d}:{s:05.2f}".replace(".", ",")
19
+
20
+ def build_srt(lines, path):
21
+ entries = []
22
+ for i, ln in enumerate(sorted(lines, key=lambda x: x["t_in"]), 1):
23
+ t0, t1 = fmt_ts(ln["t_in"]), fmt_ts(ln["t_out"])
24
+ speaker = ln["char"].title() if ln["char"] != "ANNOUNCER" else "ANNOUNCER"
25
+ entries.append(f"{i}\n{t0} --> {t1}\n{speaker}: {ln['text']}\n")
26
+ with open(path, "w") as f:
27
+ f.write("\n".join(entries))
28
+ return path
29
+
30
+ def assemble(ep, manifest_path, dialogue_path, out_dir, target=240.0):
31
+ # 1. clips order from manifest
32
+ man = json.load(open(manifest_path))
33
+ order = [c["id"] for c in man["clips"]]
34
+ clips_dir = os.path.join(ROOT, "episodes", ep, "clips")
35
+ clip_files = [os.path.join(clips_dir, cid + ".mp4") for cid in order]
36
+ missing = [c for c in clip_files if not os.path.exists(c)]
37
+ if missing:
38
+ return {"ok": False, "ep": ep, "missing": [os.path.basename(m) for m in missing]}
39
+
40
+ # 2. concat clips (stream copy where possible)
41
+ concat_list = os.path.join(ROOT, "episodes", ep, "concat.txt")
42
+ with open(concat_list, "w") as f:
43
+ for cf in clip_files:
44
+ f.write(f"file '{cf}'\n")
45
+ concat_v = os.path.join(ROOT, "episodes", ep, "concat.mp4")
46
+ run([FFMPEG, "-y", "-f", "concat", "-safe", "0", "-i", concat_list,
47
+ "-c", "copy", concat_v])
48
+
49
+ # 3. voice layer: mix all dialogue mp3s at their timestamps onto a bed
50
+ dlg = json.load(open(dialogue_path))
51
+ wav_dir = os.path.join(ROOT, "episodes", ep, "dialogue", "wav")
52
+ inputs = [concat_v]
53
+ filter_parts = []
54
+ idx = 1 # 0 = concat
55
+ made = []
56
+ for ln in dlg["lines"]:
57
+ f = os.path.join(wav_dir, ln["id"] + ".mp3")
58
+ if not os.path.exists(f):
59
+ continue
60
+ inputs.append(f)
61
+ made.append(f)
62
+ # adelay then amix
63
+ ms = int(round(ln["t_in"] * 1000))
64
+ filter_parts.append(f"[{idx}:a]adelay={ms}|{ms},apad[a{idx}]")
65
+ idx += 1
66
+ if made:
67
+ # build amix input chain
68
+ srcs = [f"[a{i}]" for i in range(1, idx)]
69
+ filter_complex = ";".join(filter_parts)
70
+ # combined with original audio (idx 0)
71
+ newsrc = "[0:a]" + "".join(srcs)
72
+ filter_complex += ";" + newsrc + f"amix=inputs={idx}:normalize=0,atrim=0:{target},asetpts=PTS-STARTPTS[aout]"
73
+ audio_args = ["-filter_complex", filter_complex, "-map", "0:v", "-map", "[aout]"]
74
+ else:
75
+ audio_args = ["-map", "0:v", "-map", "0:a"]
76
+
77
+ # 4. SRT subtitles (announcer styled distinctly via ASS is complex; use SRT default)
78
+ lns = dlg["lines"]
79
+ srt = os.path.join(ROOT, "episodes", ep, "subtitles.srt")
80
+ build_srt(lns, srt)
81
+
82
+ # 5. output with subtitles burned, exact 240s, 16:9
83
+ os.makedirs(out_dir, exist_ok=True)
84
+ out = os.path.join(out_dir, f"{ep.upper()}_NINETEEN.mp4")
85
+ emb = srt.replace(":", r"\:").replace("'", r"\\'")
86
+ vf = (
87
+ f"scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,"
88
+ f"subtitles={emb},fps=24,trim=duration={target},setpts=PTS-STARTPTS"
89
+ )
90
+ cmd = [FFMPEG, "-y"] + ["-i", concat_v] + [x for f in made for x in ("-i", f)] + \
91
+ audio_args + ["-vf", vf, "-c:v", "libx264", "-preset", "medium", "-crf", "20",
92
+ "-c:a", "aac", "-b:a", "192k", "-t", str(target), out]
93
+ run(cmd)
94
+
95
+ # verify duration
96
+ dur_cmd = ["ffprobe", "-v", "error", "-show_entries", "format=duration", "-of", "csv=p=0", out]
97
+ dur = float(run(dur_cmd).strip())
98
+ return {"ok": True, "ep": ep, "out": out, "duration": dur, "clips": len(clip_files),
99
+ "voices_mixed": len(made)}
100
+
101
+ if __name__ == "__main__":
102
+ ep = sys.argv[1]
103
+ man = os.path.join(ROOT, "episodes", ep, "submit", ep.upper() + "_manifest.json")
104
+ dlg = os.path.join(ROOT, "episodes", ep, "dialogue", "dialogue.json")
105
+ out = os.path.join(ROOT, "episodes", ep, "final")
106
+ res = assemble(ep, man, dlg, out)
107
+ print(json.dumps(res))