Files
deepseek-harness/docs/tool-catalog.zh.md
T

1671 lines
76 KiB
Markdown
Raw Normal View History

<!-- 闍ア譁�コ先枚莉カ逕ア scripts/gen-tool-catalog.ts 逕滓��帶悽荳ュ譁�枚莉カ譏ッ騾夊ソ�曙隸ュ驟榊ッケ扈エ謚、逧�サ剰ッ�ョ。蟇ケ萓ァ縲�
譖エ譁ー譌カ蜈郁ソ占。� `pnpm run gen-tool-catalog` 譖エ譁ー闍ア譁�シ悟�譖エ譁ー譛ャ譁�サカ蟷カ霑占。� `pnpm run verify-translation-pairing --write docs/tool-catalog.md` 驥肴眠隶ー蠖暮�蟇ケ縲� -->
# 蟾・蜈キ Schema 逶ョ蠖�
[English](tool-catalog.md) | 荳ュ譁�
蟾イ蜿大ク�薯莉カ蜷� `ctx.tools` 謠蝉セ帷噪謇€譛蛾擇蜷第ィ。蝙狗噪蟾・蜈キ�壽ィ。蝙矩€夊ソ�ウサ扈滓署遉コ隸咲サ�」�執蠕礼噪 `name`縲~description` 蜥� JSON Schema `parameters`縲よ悽逶ョ蠖墓弍[蟄千ウサ扈滄。オ髱「](subsystems/core.md)�育アサ蝙句所豈城。オ逕滓�逧� `cordis-surface` 謗・郤ソ蛹コ蝓滂シ臥噪陦・蜈�シ帶悽鬘オ蛻怜�逧�弍蜷� agent�域匱閭ス菴難シ画署萓帷噪*蟾・蜈キ*縲�
闍ア譁�コ先枚莉カ逕ア邉サ扈�**逕滓�**�悟ケカ騾夊ソ� `pnpm run verify-tool-catalog`��doc-sync`�域枚譯」蜷梧ュ・髣ィ遖�シ臥噪荳€驛ィ蛻�シ蛾ェ瑚ッ∵眠魎懷コヲ�帶悽荳ュ譁�枚莉カ菴應クコ扈剰ッ�ョ。蟇ケ萓ァ騾夊ソ�曙隸ュ驟榊ッケ扈エ謚、縲ゆク� Cordis 逶ョ蠖包シ育コッ貅千�� AST 螟�炊�我ク榊酔�瑚恭譁�函謌仙勣莨壼惠逵溷ョ樔ク贋ク区枚荳ュ**蜷ッ蜉ィ**豈丈クェ蟾・蜈キ謠剃サカ蟷カ隸サ蜿� `ctx.tools.schemas()`�悟屏荳コ蟾・蜈キ schema 譌�豕暮€夊ソ�撕諤∝�譫仙ョ悟�遑ョ螳夲シ御セ句ヲりソ占。梧慮螻募シ€逧�椢荳セ縲∵蕎謗・逧�緒霑ー縲∫罰驟咲スョ蜀ウ螳夂噪蜷咲ァー莉・蜿贋スソ逕ィ蜴溷ァ� JSON Schema 逧� MCP 蟾・蜈キ縲ょョ梧紛諤ァ螳亥梱莨� glob 蛹ケ驟� `packages/*/tool-*`�帛ヲよ棡逕滓�蝎ィ逧�星蜉ィ manifest�亥�謨ー謐ョ貂�黒�蛾@貍丈ササ菴募桁�梧」€譟・蟆ア莨壼、ア雍・�悟屏豁、譁ー蟾・蜈キ荳堺シ壼惠譌�莠コ蟇溯ァ臥噪諠��荳狗シコ蟆第枚譯」縲ょ盾隗ー蟾・蜈キ schema 逶ョ蠖� Agent Note](../.agents/notes/implemented/process/2026-07-02-tool-schema-catalog.md)縲�
闌�峩�啻packages/*/tool-*` 荳句キイ蜿大ク�噪莠ァ蜩∝キ・蜈キ�梧ッ丈クェ蟾・蜈キ蝮�スソ逕ィ蜈カ**鮟倩ョ、**驟咲スョ蜷ッ蜉ィ�帑ス�ヲよ棡譟蝉クェ Config 蟄玲ョオ譏ッ**蠢�。ォ鬘ケ**荳疲イ。譛蛾サ倩ョ、蛟シ�檎函謌仙勣蟆ア蠢�。サ菴懷�騾画叫�悟ッケ蠎泌桁逧�ッエ譏惹シ夊ョー蠖墓悽鬘オ螻慕、コ逧�弍蜩ェ荳ェ蛻�髪縲よウィ蜀檎噪蟾・蜈キ**蜷咲ァー**蜿ッ莉・譏ッ蜉�霓ス譌カ驟咲スョ�御セ句ヲ� `tool-subagent` 逧� `toolName`�悟屏豁、驛ィ鄂イ蜿ッ閭ス莉・荳榊酔蜷咲ァー謌夜「晏、門錐遘ー謠蝉セ帶汾荳ェ蛹�シ帛ヲよ棡蟄伜惠髫丈コァ蜩∝書蟶�噪蛻ォ蜷搾シ悟ッケ蠎泌桁逧�ッエ譏惹シ壻コ井サ・隶ー蠖輔€Aexamples/` 荳ュ逧�シ皮、コ蟾・蜈キ�井セ句ヲ� `echo`�我ク榊惠闌�峩蜀�シ瑚ソ吩ク� Cordis 逶ョ蠖穂サ�カオ逶門桁逧�激蝗エ荳€閾エ縲�
## 蟾・蜈キ蛹�丐蟆�
荳玖。ィ蟆�ィ。蝙句庄隗∫噪蟾・蜈キ蜷咲ァー荳主�閭悟錘逧�薯莉カ蛹�柱譛榊苅 seam 蟇ケ蠎碑オキ譚・縲ょ推蛹�ォ�闃る囂蜷守サ吝�遑ョ蛻�噪 JSON Schema縲�
| 蟾・蜈キ蛹� | 讓。蝙句庄隗∝錐遘ー | 萓晁オ� | 蜀吝��丞スア蜩� | 髫丈コァ蜩∝書蟶�噪蛻ォ蜷� | 驛ィ鄂イ隸エ譏� |
| --- | --- | --- | --- | --- | --- |
| `@deepseek-ai/dsh-tool-ask-user` | `ask_user_question` | `ctx.tools`縲~ctx.userInteraction` | `tool/call`縲~tool/result after a UI/provider answers the question` | - | ask_user_question 莨壽嘯蛛懷キ・蜈キ隹�畑�檎峩蛻ー蠖灘燕 UI 謠蝉セ帶婿霑泌屓莠コ邀サ遲疲。医€� |
| `@deepseek-ai/dsh-tools` | `run_code` | `ctx.tools`縲~ctx.codeRuntime (execution time)`縲~ctx.systemPrompt` | `tool/call`縲~one tool/code-dispatch-start + tool/code-dispatch pair per bridged sub-call`縲~tool/result` | - | 蝨ィ `mode: code`�汁mode: both` 荳具シ悟ョ�罰蟾・蜈キ豕ィ蜀瑚。ィ謇€譛会シ御ス應クコ蜿ッ霑�サ、閭ス蜉帛アゆケ句、也噪菫晉蕗莨�霎捺惻蛻カ�亥盾隗� Code Mode Agent Note�峨€ょ惠 `code` 荳具シ悟ョ�弍豕ィ蜀瑚。ィ蟇ケ蜊剰ョョ譬シ蠑擾シ�ire format�臥噪蜚ッ荳€雍。迪ョ�帛�莉門庄隗∬�蜉帛惠菴ソ逕ィ蟾イ蜉�霓ス霑占。梧慮隸ュ險€逕滓�逧� SDK 遶�闃ゆクュ螢ー譏弱€らィ句コ城€夊ソ� binding 隹�畑霑吩コ幄�蜉幢シ瑚ー�畑謖臥�蜴溽函蟷カ蜿醍コヲ螳夊ー�コヲ�壼星蜉ィ鬘コ蠎丞柱遲也払驕オ蠕ェ謠蝉コ、鬘コ蠎擾シ悟ケカ蜿大ョ牙�逧��謨ー菴捺怙螟夐㍾蜿�謇ァ陦� `maxParallelSubCalls` 荳ェ縲りー�畑莨夐㍾譁ー霑帛�螳梧紛荳泌女螳亥梱菫晄侃逧�キ・蜈キ豬∵ーエ郤ソ�悟ケカ蟆�ッ丈クェ蠏悟・玲鴬陦悟�閨泌芦豁、螟門アらサ捺棡縲� |
| `@deepseek-ai/dsh-plan-mode` | `exit_plan_mode` | `ctx.tools`縲~ctx.systemPrompt`縲~ctx.userInteraction (execution time, opportunistic)` | `tool/call`縲~plan/mode inactive on an approved review`縲~tool/result` | - | 隗��譛ェ豼€豢サ譌カ�憩xit_plan_mode 莉堺ソ晉蕗蝨ィ髱「蜷第ィ。蝙狗噪 schema 荳ュ�瑚ソ呎�キ迥カ諤∬スャ謐「荳堺シ壼惠隗��遲也払蜿俶峩荵句、夜「晏、夜€�謌仙キ・蜈キ逶ョ蠖募序蜉ィ縲ょ�謇ァ陦瑚キッ蠕�シ壽拠扈晁ァ��讓。蠑丈ケ句、也噪隹�畑�帛惠隗��讓。蠑丈ク具シ悟ョ�€夊ソ�畑謌キ莠、莠� seam 謠蝉コ、隶。蛻抵シ域音蜃�シ乗�ケ謐ョ蜿埼ヲ育サァ扈ュ隗���会シ梧音蜃�錘莨壼惠豁・鬪、霎ケ逡瑚ョー蠖戊ァ��讓。蠑丞キイ蛛懃畑縲� |
| `@deepseek-ai/dsh-tool-bash` | `bash` | `ctx.tools`縲~ctx.bash`縲~ctx.systemPrompt`縲~ctx.bashEnv`縲~ctx.tasks at call time for run_in_background` | `tool/call`縲~tool/result` | - | bash 蟾・蜈キ譏ッ bash 謇ァ陦悟勣 seam 髱「蜷第ィ。蝙狗噪豸郁エケ譁ケ縲ゆスソ逕ィ `run_in_background` 逧�ソ占。御シ壽ウィ蜀悟芦騾夂畑 `ctx.tasks` 霑占。梧慮�悟ケカ騾夊ソ� `task_*` 蟾・蜈キ�域擂閾ェ `@deepseek-ai/dsh-tool-tasks`�画噺髮�シ丞●豁「�帷ヲ∫畑 `enableRunInBackground` 驟咲スョ�磯サ倩ョ、荳コ true�牙錘�瑚ッ・蜿よ焚莨夊「ォ螳悟�遘サ髯、縲� |
| `@deepseek-ai/dsh-tool-pwsh` | `pwsh` | `ctx.tools`縲~ctx.bash`縲~ctx.systemPrompt`縲~ctx.bashEnv`縲~ctx.tasks at call time for run_in_background` | `tool/call`縲~tool/result` | - | pwsh 蟾・蜈キ譏ッ Windows 扈�粋荳ュ bash 謇ァ陦悟勣 seam 逧� PowerShell 譁ケ險€豸郁エケ譁ケ�育罰 `@deepseek-ai/dsh-pwsh-local` 遲� PowerShell 謇ァ陦悟勣荳コ `ctx.bash` 謠蝉セ帛錘遶ッ�会シ幃勁豐咏ョア謗・蜿」螟厄シ悟ョ�€宣。ケ蟇ケ蠎� bash 蟾・蜈キ隹�畑縲ゆスソ逕ィ `run_in_background` 逧�ソ占。御シ壽ウィ蜀悟芦騾夂畑 `ctx.tasks` 霑占。梧慮�悟ケカ騾夊ソ� `task_*` 蟾・蜈キ謾カ髮�シ丞●豁「�帶汚邂。逧� `DSH_*` 邇ッ蠅�擂閾ェ `@deepseek-ai/dsh-bash-env`縲よッ乗ャ。隹�畑驛ス蝨ィ譁ー霑帷ィ倶クュ霑占。鯉シ御ク堺スソ逕ィ謖∽ケ� PTY 莨夊ッ昴€りキッ蠕�㊦逕ィ蜴溽函 `C:\...` 蠖「蠑擾シ悟序驥城㊦逕ィ `$env:NAME`縲� |
| `@deepseek-ai/dsh-tool-cordis` | `cordis_inspect`縲~cordis_mount`縲~cordis_unmount` | `ctx.tools` | `tool/call`縲~tool/result`縲~process-local temporary Plugin lifecycle` | - | 荳榊惠莉サ菴暮囂莠ァ蜩∝書蟶�噪譬台クュ�碁怙隕∵怏諢城€画叫蜷ッ逕ィ�帑クエ譌カ Plugin 莉」遐∝庄莉・隶ソ髣ョ逵溷ョ櫁ソ占。梧慮�瑚ァ� .agents/notes/implemented/feature/2026-07-08-self-referential-cordis-toolset.md縲ら罰 cordis_mount 蛻帛サコ逧�薯莉カ蝨ィ蜊ク霓ス謌� DSH 驥榊星荵句燕蜿ッ莉・豕ィ蜀�**鬚晏、也噪**讓。蝙句庄隗∝キ・蜈キ�帛書逕溯ソ咏アサ蟾・蜈キ髮�序譖エ譌カ�檎ウサ扈滉シ夊ョー蠖募ョ梧紛荳疲怏蜿伜勘逧�ッキ豎ょ、エ縲� |
| `@deepseek-ai/dsh-tool-bash-persistent` | `bash` | `ctx.tools`縲~ctx.pty`縲~an owning Agent at execution time` | `tool/call`縲~PTY shell state`縲~tool/result` | - | 荳€荳ェ謖画園譛芽€�囈遖サ逧�戟荵� bash 蟾・蜈キ�幃Κ鄂イ扈�粋謠蝉セ� PTY 蜷守ォッ�悟ケカ蜿ッ隕�尠髱「蜷第ィ。蝙狗噪邇ッ蠅�緒霑ー縲� |
| `@deepseek-ai/dsh-tool-str-replace-editor` | `str_replace_editor` | `ctx.tools`縲~ctx.fs` | `tool/call`縲~fs/observed after view presence/absence, edit absence, or successful mutation`縲~tool/result` | - | 蝓コ莠取枚莉カ邉サ扈� seam 逧�峡遶区衍逵具シ丞�蟒コ�丞髪荳€蟄鈴擇驥乗崛謐「�乗潔陦梧薯蜈・蟾・蜈キ�帛庄荳惹ササ菴� shell 謌也サ育ォッ謗・蜿」扈�粋縲� |
| `@deepseek-ai/dsh-tool-fs` | `edit`縲~read`縲~read_image`縲~write` | `ctx.tools`縲~ctx.fs`縲~ctx.systemPrompt`縲~ctx.attachments (read_image registration)`縲~ctx.llm + an image-capable route (read_image execution)` | `tool/call`縲~fs/write-intent or fs/edit-intent for mutations`縲~fs/observed after read presence/absence or successful file operation`縲~durable attachment (read_image)`縲~tool/result` | - | 蜈郁ッサ蜷主��冗シ冶セ醍ュ也払逕ア `@deepseek-ai/dsh-fs-policy` 豺サ蜉��帛ョ�弍荳€荳ェ `fs/*` 莠倶サカ髣ィ遖∵薯莉カ�御ク堺シ壽隼蜿� schema縲ょ刈霓ス霑吩コ帛キ・蜈キ逧�Κ鄂イ謖蛾「�悄荵溷コ泌刈霓ス隸・謠剃サカ縲よイ。譛� `ctx.attachments` 譌カ `read_image` 荳堺シ壽ウィ蜀鯉シ帛� schema 荳手キッ逕ア譌�蜈ウ�梧鴬陦梧慮髯、髱樒。ョ蛻�キッ逕ア逧�ィ。蝙句」ー譏主崟蜒剰セ灘��悟凄蛻呎拠扈昴€� |
| `@deepseek-ai/dsh-tool-fs-search` | `glob`縲~grep` | `ctx.tools`縲~ctx.subprocess`縲~ctx.systemPrompt` | `tool/call`縲~tool/result` | - | glob 蜥� grep 譏ッ譌�譚。莉カ蜿ッ逕ィ逧�書邇ー蟾・蜈キ�碁€夊ソ� ctx.subprocess spawn 髫丞桁謠蝉セ帷噪 ripgrep 莠瑚ソ帛宛譁�サカ��@vscode/ripgrep`�会シ悟ケカ菴應クコ譎ョ騾壼燕蜿ー隹�畑霑占。鯉シ檎サ昜ク堺ス應クコ蜷主床莉サ蜉。�帶裏髴€蝨ィ螳ソ荳サ譛コ螳芽」� `rg`�御ケ滉ク咲サ剰ソ� shell 螻ゅ€よ悽逶ョ蠖穂スソ逕ィ `sampleOverCapGlobResults: true`�幃Κ鄂イ蠢�。サ譏セ蠑城€画叫隸・陦御クコ縲らサ捺棡雜�ソ�ク企剞譌カ�御シ夐€夊ソ�庄騾臥噪 ctx.spillStore 蜷守ォッ菫晏ュ伜ョ梧紛逧��シ蠑丞喧蛻苓。ィ�帛惠蜈ア鄂ョ驛ィ鄂イ荳ュ�悟ヲよ棡蜷守ォッ蜈ャ蠑€譛ャ蝨ー霍ッ蠕�シ瑚ソ泌屓逧�ョ壻ス堺ソ。諱ッ蜿ッ萓帛錘扈ュ隸サ蜿厄シ乗頗邏「縲� |
| `@deepseek-ai/dsh-tool-pty` | `terminal_close`縲~terminal_list`縲~terminal_open`縲~terminal_read`縲~terminal_send`縲~terminal_signal` | `ctx.tools`縲~ctx.pty`縲~ctx.systemPrompt`縲~ctx.tasks at call time for run_in_background` | `tool/call`縲~tool/result` | - | 霑� 6 荳ェ扈育ォッ蟾・蜈キ髴€隕�€画叫蜷ッ逕ィ�檎畑莠手。・蜈�ク€谺。諤ァ bash�乗枚莉カ邉サ扈溷キ・蜈キ縲Aterminal_send(run_in_background: true)` 莨壽ウィ蜀悟芦 `ctx.tasks`�孕chema 荳榊桁蜷ォ TUI縲∝�蜷肴潔髞ョ蠎丞�縲。EL縲∬ー�紛蟆コ蟇ク縲∬�蜉ィ蜷ッ蜉ィ蜥瑚キィ agent 蜈ア莠ォ縲� |
| `@deepseek-ai/dsh-tool-goal` | `create_goal`縲~get_goal`縲~update_goal` | `ctx.tools`縲~ctx.agents`縲~ctx.goals`縲~ctx.systemPrompt`縲~a calling Agent in an authorized open turn` | `tool/call`縲~goal/change for mutations`縲~tool/result` | - | create縲‘dit縲}ause 蜥� resume 隕∵アら峩謗・譚・閾ェ莠コ邀サ逧��ケ譚�剞�嫩omplete 蜥� blocked 荵滓磁蜿礼。ョ蛻�噪蠖灘燕 Goal Round縲Clocked 逧�サ倩ョ、荳矩剞譏ッ 3 荳ェ闔キ蜃�噪 Round縲� |
| `@deepseek-ai/dsh-tool-schedule` | `schedule_create`縲~schedule_delete`縲~schedule_list` | `ctx.tools`縲~ctx.sessions`縲ヾession 謖∽ケ�喧縲∵悴譚・蛻帛サコ逧� live 譬ケ Agent | `tool/call`縲~schedule/change create or delete`縲~tool/result` | - | 莉�惠騾画叫蜷ッ逕ィ逧� Schedule 謠剃サカ蜉�霓ス蜷主�蟒コ逧� live 譬ケ Agent scope 蜀�ウィ蜀後€ら沿譛ャ 1 謗・蜿� after_seconds縲∵仞蠑冗サ晏ッケ at 蜥梧怏逡悟崋螳夐€溽紫 every_seconds�悟ケカ謚ォ髴イ session-local 莠、莉假シ帷ョ。逅�ッサ蜿紋ク主序譖エ蠢�。サ騾夊ソ��莠ォ逧� Session 謖∽ケ�喧 barrier縲� |
| `@deepseek-ai/dsh-tool-lsp` | `lsp` | `ctx.tools`縲~ctx.lsp`縲~ctx.systemPrompt` | `tool/call`縲~tool/result` | - | lsp 蟾・蜈キ蟆�署萓帶婿騾画叫蜥瑚ッュ險€譛榊苅蝎ィ蟄占ソ帷ィ狗スョ莠� ctx.lsp 荵句錘�悟屏豁、蜈カ讓。蝙句庄隗� schema 蝨ィ譖エ謐「謠蝉セ帶婿譌カ菫晄戟遞ウ螳壹€りソ占。梧慮隕∵アょキイ豕ィ蜀梧署萓帶婿�御セ句ヲ� `@deepseek-ai/dsh-lsp-local`�帛ヲよ棡豐。譛画署萓帶婿�梧衍隸「莨夊ソ泌屓扈捺桷蛹� `LSP_UNAVAILABLE` 髞呵ッッ�瑚€御ク堺シ壽隼蜿� schema縲� |
| `@deepseek-ai/dsh-tool-ralph` | `ralph` | `ctx.tools`縲~ctx.workflows`縲~ctx.subagents`縲~ctx.systemPrompt`縲~a calling Agent (exec.agent parents every fresh round)` | `tool/call`縲~tool/result`縲~workflow and child session events during execution` | - | 蝗コ螳夂噪蜑榊床蟾・菴懈オ∽シ壼惠豈丈クェ Round 蜷ッ蜉ィ荳€荳ェ蜈ィ譁ー逧�サ捺桷蛹門ュ千コァ�帶ィ。蝙句宵閭ス騾画叫荳榊庄蜿倡岼譬�柱蜿ッ騾臥噪 Round 荳企剞縲� |
| `@deepseek-ai/dsh-tool-skill` | `skill` | `ctx.tools`縲~ctx.agents`縲~ctx.skills` | `tool/call`縲~tool/result`縲~user/message replacement catalogs via agent.inject()` | - | - |
| `@deepseek-ai/dsh-tool-session-query` | `session_event_read`縲~session_event_search`縲~session_event_trace`縲~session_search`縲~session_trace` | `ctx.tools`縲~ctx.systemPrompt`縲~ctx.sessionQuery`縲~a calling Agent for workspace authority` | `tool/call`縲~tool/result` | - | 霑� 5 荳ェ蜿ェ隸サ蟾・蜈キ莨夐嚼阯乗署萓帶婿貂ク譬�シ悟ケカ譬ケ謐ョ荳榊庄蜿倡噪隹�畑 agent 莨夊ッ昜クコ豈丈クェ扈捺棡謗域揀縲りッ・蛹�怙隕�€画叫蜷ッ逕ィ�幃怙隕∝シコ蛻カ謌ェ豁「譌カ髣エ謌夜剞蛻カ陦悟�霎灘�逧�サ�粋霑倅シ壽撃霓ス騾夂畑雜�慮謌� spill 遲也払縲� |
| `@deepseek-ai/dsh-tool-subagent` | `subagent` | `ctx.tools`縲~ctx.subagents`縲~ctx.systemPrompt` | `tool/call`縲~tool/result`縲~child session events through the chosen provider` | `subagent`縲~subagent_fork` | 豕ィ蜀檎噪蟾・蜈キ蜷咲ァー蜿門�莠主刈霓ス譌カ `toolName` 驟咲スョ�磯サ倩ョ、荳コ `subagent`�会シ帑ク願ソー schema 蟇ケ蠎秘サ倩ョ、蛟シ縲る囂莠ァ蜩∝書蟶�噪扈�粋莨壻クコ豈丈クェ subagent 蜷守ォッ蜉�霓ス荳€谺。隸・蛹�シ悟屏豁、讓。蝙玖ソ倅シ夂恚蛻ー扈大ョ壼芦 fork 蜷守ォッ逧� `subagent_fork`縲よッ丈クェ螳樔セ狗噪謠剰ソー縲~run_in_background` 蜿よ焚荳� system prompt 遲也払蜿門�莠主ョ��蟾ア逧� `backgroundMode` 蜥� `enableRunInBackground`�悟屏豁、荳、荳ェ髫城刋 schema 蟷カ荳咲嶌蜷鯉シ啻subagent` 荳コ `continuable`�檎怐逡・蜿よ焚譌カ鮟倩ョ、蜷主床霑占。鯉シ悟ケカ逕ア runtime 閾ェ蜉ィ謚暮€堤サ捺據扈捺棡�嫣subagent_fork` 菫晄戟 `one-shot`�檎怐逡・蜿よ焚譌カ鮟倩ョ、蜑榊床霑占。後€りッヲ隗� `packages/bundle/base/cordis.patch.yml` 蜥� `examples/acp-agent/cordis.yml`縲� |
| `@deepseek-ai/dsh-tool-subagent-control` | `interrupt_agent`縲~list_agents`縲~send_message` | `ctx.tools`縲~ctx.subagents`縲~ctx.agents and ctx.sessionProjections (list_agents only)` | `tool/call`縲~tool/result`縲~child session events through ctx.subagents` | - | 霑吩コ帶弍謗ァ蛻カ蜿ッ扈ァ扈ュ蜷主床 subagent 逧��螻€蜻ス蜷榊キ・蜈キ�夂サ大ョ壽署萓帶婿逧� `tool-subagent` 螳樔セ区ウィ蜀御ク榊酔逧�ァ疲エセ蟾・蜈キ�帶悽蛹�ウィ蜀御ク€谺。 `send_message` 蜥� `interrupt_agent`�悟嘗逕ア `list_agents` 騾夊ソ�黒迢ャ蜉�霓ス逧� `/list-agents` 謠剃サカ謠蝉セ幢シ悟�逶ョ蠖戊。御スソ逕ィ sessionProjections 蜥悟ョ樊慮 Agent 豕ィ蜀瑚。ィ縲� |
| `@deepseek-ai/dsh-tool-subagent-report` | `report` | `ctx.subagents`縲~ctx.systemPrompt`縲~a live continuable in-process child Agent` | `tool/call`縲~tool/result`縲~a user-role message in the direct parent session` | - | 謖牙庄扈ァ扈ュ逧�ソ帷ィ句�蟄千コァ豕ィ蜀鯉シ瑚€碁撼蜈ィ螻€豕ィ蜀鯉シ悟屏豁、隸・ schema 莉�惠霑咏ァ榊ュ千コァ蜀�Κ蜿ッ隗�シ悟ケカ荳比ク榊女蜈カ蜈ィ螻€ `toolFilter` 蠖ア蜩阪€ょ酔荳€莉ス雍。迪ョ霑倅シ壼ョ芽」�ュ千コァ菴懃畑蝓溽噪 `tool:report` 邉サ扈滓署遉コ隸� section�梧悽逶ョ蠖穂ク肴クイ譟楢ッ・ section縲る擇蜷醍宛郤ァ逧� `send_message` 蟾・蜈キ蜊慕峡螳芽」�€� |
| `@deepseek-ai/dsh-tool-tasks` | `task_kill`縲~task_list`縲~task_output` | `ctx.tools`縲~ctx.tasks`縲~ctx.systemPrompt` | `tool/call`縲~tool/result`縲~user/message via agent.inject() for background completion notices` | - | 荳惹ササ蜉。遘咲アサ譌�蜈ウ逧�錘蜿ー莉サ蜉。謗ァ蛻カ蝎ィ�壼錘蜿ー bash 蜻ス莉、縲 ̄TY 蜿鷹€∝柱 subagent 驛ス騾夊ソ�嶌蜷檎噪 3 荳ェ蟾・蜈キ隸サ蜿悶€∝�蜃コ蜥檎サ域ュ「縲ょ刈霓ス隸・謠剃サカ莨壽撃謗・謗ァ蛻カ蝎ィ�御サ手€悟星逕ィ逕滉コァ譁ケ逧� `ctx.tasks.start()`縲� |
| `@deepseek-ai/dsh-tool-todo` | `todo_write` | `ctx.tools`縲~owning Agent session` | `tool/call`縲~todo/write`縲~tool/result` | - | todo_write 譏ッ莨夊ッ晄園譛臥噪迥カ諤�シ婉I 蟆�怙譁ー逧� todo/write 莠倶サカ貂イ譟謎クコ譽€譟・貂�黒縲AallowParallelInProgress` 譏ッ豐。譛蛾サ倩ョ、蛟シ逧�ソ�。ォ鬘ケ�悟屏豁、譛ャ逶ョ蠖墓�遑ョ騾画叫 `true`�悟ッケ蠎疲緒霑ー蜈∬ョク蜷梧慮蟄伜惠螟壻クェ `in_progress` 鬘ケ縲る€画叫 `false` 逧�Κ鄂イ莨夊執蠕怜酔荳€蟾・蜈キ�御ス�緒霑ー莨夊ヲ∵アょ宵閭ス譛� 1 荳ェ豢サ蜉ィ莉サ蜉。縲� |
| `@deepseek-ai/dsh-tool-workflow` | `workflow` | `ctx.tools`縲~ctx.workflows`縲~ctx.systemPrompt`縲~a calling Agent (exec.agent parents the script children)` | `tool/call`縲~tool/result` | - | - |
| `@deepseek-ai/dsh-tool-web` | `web_fetch`縲~web_search` | `ctx.tools`縲~ctx.web`縲~ctx.systemPrompt` | `tool/call`縲~tool/result` | - | web_search 蜥� web_fetch 蟆�署萓帶婿騾画叫鄂ョ莠� ctx.web 荵句錘�御スソ讓。蝙句庄隗� schema 蝨ィ譖エ謐「蜷守ォッ譌カ菫晄戟遞ウ螳壹€� |
## `@deepseek-ai/dsh-tool-ask-user`
### `ask_user_question`
扈ァ扈ュ謫堺ス懷燕�悟ヲよ棡髴€隕∫。ョ隶、縲�€画叫謌也シコ螟ア逧�ソ。諱ッ�瑚ッキ蜷醍畑謌キ謠仙�邂€譏朱琉鬚倥€ょ書騾∽ク€荳ェ謌門、壻クェ髣ョ鬚假シ梧ッ丈クェ髣ョ鬚倬�蟶ヲ荳€荳ェ遞ウ螳� id�瑚ッ・ id 莨壼惠遲疲。井クュ蜴滓�キ霑泌屓縲�
```json
{
"type": "object",
"properties": {
"questions": {
"type": "array",
"description": "Questions to ask the user before continuing.",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"id": {
"type": "string",
"description": "Stable id for this question; echoed in the answer."
},
"question": {
"type": "string",
"description": "The specific question to ask the user."
},
"header": {
"type": "string",
"description": "Optional short heading for the question, such as \"Confirm\" or \"Choose Mode\"."
},
"options": {
"type": "array",
"description": "Optional choices to show the user. If you recommend one, put it first and append \"(Recommended)\" to that label.",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"label": {
"type": "string",
"description": "Short user-facing option label."
},
"description": {
"type": "string",
"description": "One sentence explaining the tradeoff or impact."
}
},
"required": [
"label"
]
}
},
"multi_select": {
"type": "boolean",
"description": "Whether the user may select more than one option. Defaults to false."
}
},
"required": [
"id",
"question"
]
}
}
},
"required": [
"questions"
]
}
```
譚・貅撰シ喙`packages/interaction/tool-ask-user/src/index.ts`](../packages/interaction/tool-ask-user/src/index.ts)
ask_user_question 莨壽嘯蛛懷キ・蜈キ隹�畑�檎峩蛻ー蠖灘燕 UI 謠蝉セ帶婿霑泌屓莠コ邀サ遲疲。医€�
## `@deepseek-ai/dsh-tools`
### `run_code`
髓亥ッケ蜿ッ逕ィ蟾・蜈キ謇ァ陦� TypeScript 遞句コ上€りッキ郛門�蠑よュ・蜃ス謨ー逧�**蜃ス謨ー菴�**�井サ�スソ逕ィ蜿ッ謫ヲ髯、隸ュ豕包シ帶髪謖�。カ螻� `await` 蜥� `return`�会シ悟ケカ譬ケ謐ョ邉サ扈滓署遉コ隸堺クュ逧�」ー譏趣シ御サ・ `await tools.name(args)` 蠖「蠑剰ー�畑蟾・蜈キ縲ょ宵譛画遠蜊ー謌冶ソ泌屓逧��螳ケ莨壻シ�蝗橸シ瑚ッキ隹ィ諷守ュ幃€峨€�
```json
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The program: the body of an async TypeScript function."
},
"description": {
"type": "string",
"description": "Clear, concise description of what this program does in active voice, 5-10 words (shown in the UI). Examples: \"Count TODO markers across packages\"; \"Read failing test and its fixture\"; \"Rename config key in every cordis.yml\"."
}
},
"required": [
"code",
"description"
]
}
```
譚・貅撰シ喙`packages/core/tools/src/code-mode.ts`](../packages/core/tools/src/code-mode.ts)
蝨ィ `mode: code`�汁mode: both` 荳具シ悟ョ�罰蟾・蜈キ豕ィ蜀瑚。ィ謇€譛会シ御ス應クコ蜿ッ霑�サ、閭ス蜉帛アゆケ句、也噪菫晉蕗莨�霎捺惻蛻カ�亥盾隗� Code Mode Agent Note�峨€ょ惠 `code` 荳具シ悟ョ�弍豕ィ蜀瑚。ィ蟇ケ蜊剰ョョ譬シ蠑冗噪蜚ッ荳€雍。迪ョ�帛�莉門庄隗∬�蜉帛惠菴ソ逕ィ蟾イ蜉�霓ス霑占。梧慮隸ュ險€逕滓�逧� SDK 遶�闃ゆクュ螢ー譏弱€らィ句コ城€夊ソ� binding 隹�畑霑吩コ幄�蜉幢シ瑚ー�畑謖臥�蜴溽函蟷カ蜿醍コヲ螳夊ー�コヲ�壼星蜉ィ鬘コ蠎丞柱遲也払驕オ蠕ェ謠蝉コ、鬘コ蠎擾シ悟ケカ蜿大ョ牙�逧��謨ー菴捺怙螟夐㍾蜿�謇ァ陦� `maxParallelSubCalls` 荳ェ縲りー�畑莨夐㍾譁ー霑帛�螳梧紛荳泌女螳亥梱菫晄侃逧�キ・蜈キ豬∵ーエ郤ソ�悟ケカ蟆�ッ丈クェ蠏悟・玲鴬陦悟�閨泌芦豁、螟門アらサ捺棡縲�
## `@deepseek-ai/dsh-plan-mode`
### `exit_plan_mode`
莉�惠隗��讓。蠑丈ク倶スソ逕ィ縲よ署莠、隶。蛻剃セ帷畑謌キ隸�ョ。�悟ケカ蝨ィ闔キ謇ケ蜷朱€€蜃コ隗��讓。蠑上€ょ書騾�**螳梧紛逧�** Markdown 隶。蛻抵シ御サ・荳€荳ェ荳コ隶。蛻貞多蜷咲噪 # 譬�「伜シ€螟エ縲ら畑謌キ蜿ッ莉・謇ケ蜃�シ井サ惹ス�逧�ク倶ク€豁・鬪、襍キ謇ァ陦瑚ョ。蛻抵シ会シ御ケ溷庄莉・隕∵アらサァ扈ュ隗���帛�蜿埼ヲ井シ夐€夊ソ�キ・蜈キ扈捺棡霑泌屓�瑚ッキ菫ョ謾ケ蜷主�谺。謠蝉コ、縲�
```json
{
"type": "object",
"properties": {
"plan": {
"type": "string",
"description": "The complete plan, as markdown, starting with a # heading that names it."
}
},
"required": [
"plan"
]
}
```
譚・貅撰シ喙`packages/plan/plan-mode/src/index.ts`](../packages/plan/plan-mode/src/index.ts)
隗��譛ェ豼€豢サ譌カ�憩xit_plan_mode 莉堺ソ晉蕗蝨ィ髱「蜷第ィ。蝙狗噪 schema 荳ュ�瑚ソ呎�キ迥カ諤∬スャ謐「荳堺シ壼惠隗��遲也払蜿俶峩荵句、夜「晏、夜€�謌仙キ・蜈キ逶ョ蠖募序蜉ィ縲ょ�謇ァ陦瑚キッ蠕�シ壽拠扈晁ァ��讓。蠑丈ケ句、也噪隹�畑�帛惠隗��讓。蠑丈ク具シ悟ョ�€夊ソ�畑謌キ莠、莠� seam 謠蝉コ、隶。蛻抵シ域音蜃�シ乗�ケ謐ョ蜿埼ヲ育サァ扈ュ隗���会シ梧音蜃�錘莨壼惠豁・鬪、霎ケ逡瑚ョー蠖戊ァ��讓。蠑丞キイ蛛懃畑縲�
## `@deepseek-ai/dsh-tool-bash`
### `bash`
謇ァ陦� bash 蜻ス莉、��bash -c`�牙ケカ霑泌屓 stdout/stderr縲よッ乗ャ。隹�畑驛ス蝨ィ譁ー shell 荳ュ霑占。鯉シ夊ー�畑荵矩龍荳堺ソ晉蕗莉サ菴慕憾諤�シ�wd縲∝序驥上€∝�謨ー�会シ瑚ッキ莨�蜈・ `workdir`�御ク崎ヲ∽スソ逕ィ `cd`縲る撼髮カ騾€蜃コ莨壽冠蜻贋クコ `[exit code: N]`縲ょス灘燕 harness 邇ッ蠅�ソ。諱ッ騾夊ソ�汚邂。逧� `$DSH_*` 蜿倬㍼蜈ャ蠑€�碁怙隕∵慮隸キ譽€譟・霑吩コ帛序驥上€ょ多莉、蜿ッ閭ス蝨ィ譁�サカ豐咏ョア荳ュ霑占。鯉シ幄「ォ髦サ豁「逧�枚莉カ謫堺ス懈冠蜻贋クコ `[sandbox: file access denied under <mode> mode]`�瑚ソ呎弍遲也払諡堤サ晢シ瑚€御ク肴弍蜻ス莉、郛コ髯キ�瑚ッキ蜍ソ謐「荳€遘肴婿蠑城㍾隸輔€りセ�柄逧�セ灘�莨壽穐譁ュ�悟宵菫晉蕗蟆セ驛ィ�帛ヲょ庄逕ィ�悟ョ梧紛霎灘�莨壻ソ晏ュ伜芦譁�サカ蟷カ謚・蜻雁�霍ッ蠕�€ょッケ莠朱柄譌カ髣エ霑占。檎噪蜻ス莉、�瑚ッキ隶セ鄂ョ `run_in_background: true`�夊ー�畑莨夂ォ句叉霑泌屓 task id�帑スソ逕ィ `task_output` 隸サ蜿冶セ灘��御スソ逕ィ `task_kill` 蛛懈ュ「莉サ蜉。縲�
```json
{
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The bash command to execute."
},
"description": {
"type": "string",
"description": "Clear, concise description of what this command does in active voice, 5-10 words (shown in the UI). Examples: \"ls\" 竊� \"List files in current directory\"; \"git status\" 竊� \"Show working tree status\"; \"npm install\" 竊� \"Install package dependencies\"."
},
"timeoutMs": {
"type": "number",
"description": "Timeout in milliseconds. The executor applies its configured default and cap, and kills the command on expiry."
},
"workdir": {
"type": "string",
"description": "Working directory for this command. Defaults to the session workspace; a relative path is resolved against it."
},
"run_in_background": {
"type": "boolean",
"description": "Run in the background and return a task id immediately (collect with task_output, stop with task_kill). No timeout applies."
}
},
"required": [
"command",
"description"
]
}
```
譚・貅撰シ喙`packages/bash/tool-bash/src/index.ts`](../packages/bash/tool-bash/src/index.ts)
bash 蟾・蜈キ譏ッ bash 謇ァ陦悟勣 seam 髱「蜷第ィ。蝙狗噪豸郁エケ譁ケ縲ゆスソ逕ィ `run_in_background` 逧�ソ占。御シ壽ウィ蜀悟芦騾夂畑 `ctx.tasks` 霑占。梧慮�悟ケカ騾夊ソ� `task_*` 蟾・蜈キ�域擂閾ェ `@deepseek-ai/dsh-tool-tasks`�画噺髮�シ丞●豁「�帷ヲ∫畑 `enableRunInBackground` 驟咲スョ�磯サ倩ョ、荳コ true�牙錘�瑚ッ・蜿よ焚莨夊「ォ螳悟�遘サ髯、縲�
## `@deepseek-ai/dsh-tool-pwsh`
### `pwsh`
謇ァ陦� PowerShell 蜻ス莉、��pwsh -Command`�牙ケカ霑泌屓 stdout/stderr縲よッ乗ャ。隹�畑驛ス蝨ィ譁ー逧� pwsh 霑帷ィ倶クュ霑占。鯉シ夊ー�畑荵矩龍荳堺ソ晉蕗莉サ菴慕憾諤�シ�wd縲∝序驥上€∝�謨ー�会シ瑚ッキ莨�蜈・ `workdir`�御ク崎ヲ∽スソ逕ィ `cd`縲りキッ蠕�㊦逕ィ Windows 蜴溽函蠖「蠑擾シ�C:\...`�会シ帑スソ逕ィ `$env:NAME` 隸サ蜿也識蠅�序驥上€る撼髮カ騾€蜃コ莨壽冠蜻贋クコ `[exit code: N]`縲ょス灘燕 harness 邇ッ蠅�ソ。諱ッ騾夊ソ�汚邂。逧� `$env:DSH_*` 蜿倬㍼蜈ャ蠑€�碁怙隕∵慮隸キ譽€譟・霑吩コ帛序驥上€ょ多莉、蜿ッ閭ス蝨ィ譁�サカ豐咏ョア荳ュ霑占。鯉シ幄「ォ髦サ豁「逧�枚莉カ謫堺ス懈冠蜻贋クコ `[sandbox: file access denied under <mode> mode]`�瑚ソ呎弍遲也払諡堤サ晢シ瑚€御ク肴弍蜻ス莉、郛コ髯キ�瑚ッキ蜍ソ謐「荳€遘肴婿蠑城㍾隸輔€りセ�柄逧�セ灘�莨壽穐譁ュ�悟宵菫晉蕗蟆セ驛ィ�帛ヲょ庄逕ィ�悟ョ梧紛霎灘�莨壻ソ晏ュ伜芦譁�サカ蟷カ謚・蜻雁�霍ッ蠕�€ょ惠 Windows 荳奇シ瑚「ォ蠑コ蛻カ扈域ュ「逧�多莉、莨壻サ・ `[exit code: 1]` 扈鍋ョ嶺ク比ク榊クヲ菫。蜿キ譬�ョー�瑚ッキ蟆��隗�クコ荳ュ譁ュ�瑚€御ク肴弍蜻ス莉、螟ア雍・縲ょッケ莠朱柄譌カ髣エ霑占。檎噪蜻ス莉、�瑚ッキ隶セ鄂ョ `run_in_background: true`�夊ー�畑莨夂ォ句叉霑泌屓 task id�帑スソ逕ィ `task_output` 隸サ蜿冶セ灘��御スソ逕ィ `task_kill` 蛛懈ュ「莉サ蜉。縲�
```json
{
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The PowerShell command to execute."
},
"description": {
"type": "string",
"description": "Clear, concise description of what this command does in active voice, 5-10 words (shown in the UI). Examples: \"ls\" 竊� \"List files in current directory\"; \"git status\" 竊� \"Show working tree status\"; \"Get-Process\" 竊� \"List running processes\"."
},
"timeoutMs": {
"type": "number",
"description": "Timeout in milliseconds. The executor applies its configured default and cap, and kills the command on expiry."
},
"workdir": {
"type": "string",
"description": "Working directory for this command. Defaults to the session workspace; a relative path is resolved against it."
},
"run_in_background": {
"type": "boolean",
"description": "Run in the background and return a task id immediately (collect with task_output, stop with task_kill). No timeout applies."
}
},
"required": [
"command",
"description"
]
}
```
譚・貅撰シ喙`packages/bash/tool-pwsh/src/index.ts`](../packages/bash/tool-pwsh/src/index.ts)
pwsh 蟾・蜈キ譏ッ Windows 扈�粋荳ュ bash 謇ァ陦悟勣 seam 逧� PowerShell 譁ケ險€豸郁エケ譁ケ�育罰 `@deepseek-ai/dsh-pwsh-local` 遲� PowerShell 謇ァ陦悟勣荳コ `ctx.bash` 謠蝉セ帛錘遶ッ�会シ幃勁豐咏ョア謗・蜿」螟厄シ悟ョ�€宣。ケ蟇ケ蠎� bash 蟾・蜈キ隹�畑縲ゆスソ逕ィ `run_in_background` 逧�ソ占。御シ壽ウィ蜀悟芦騾夂畑 `ctx.tasks` 霑占。梧慮�悟ケカ騾夊ソ� `task_*` 蟾・蜈キ謾カ髮�シ丞●豁「�帶汚邂。逧� `DSH_*` 邇ッ蠅�擂閾ェ `@deepseek-ai/dsh-bash-env`縲よッ乗ャ。隹�畑驛ス蝨ィ譁ー霑帷ィ倶クュ霑占。鯉シ御ク堺スソ逕ィ謖∽ケ� PTY 莨夊ッ昴€りキッ蠕�㊦逕ィ蜴溽函 `C:\...` 蠖「蠑擾シ悟序驥城㊦逕ィ `$env:NAME`縲�
## `@deepseek-ai/dsh-tool-cordis`
### `cordis_inspect`
譽€譟・蠖灘燕 DSH 霑帷ィ倶クュ逧�ョ樊慮 Cordis 霑占。梧慮縲ょ宵隸サ縲らォ�闃ょ桁諡ャ�啻services`�域園譛牙キイ謠蝉セ帷噪 ctx 譛榊苅蜿頑凶譛牙ョ�噪謠剃サカ fiber�峨€~plugins`�域園譛牙ョ樊慮謠剃サカ fiber 蜿雁�逕溷多蜻ィ譛溽憾諤�シ峨€~tools`�亥ス灘燕豕ィ蜀檎噪讓。蝙句庄隗∝キ・蜈キ�悟叉菴�蜿ッ莉・隹�畑逧�キ・蜈キ�峨€~temporary`�井サ�罰 cordis_mount 蛻帛サコ逧�クエ譌カ Plugin�喨d縲∝錐遘ー縲∫憾諤√€∵署萓帷噪譛榊苅縲∫ュ牙セ�噪譛榊苅蜥悟ュ倡サュ譛滂シ峨€~api`�域ッ丈クェ**螳樊慮**譛榊苅逧�婿豕慕ュセ蜷堺サ・蜿雁盾謨ー�剰ソ泌屓蛟シ邀サ蝙句ス「迥カ�帷シ門�隹�畑譛榊苅逧�薯莉カ莉」遐∝燕隸キ蜈磯�隸サ�峨€~events`�域ッ丈クェ harness 莠倶サカ逧��豢セ讓。蠑丞柱遑ョ蛻�ュセ蜷搾シ帛惠豁、騾画叫逶大成逶ョ譬�シ峨€ゆクエ譌カ Plugin 莉�ュ伜惠莠主�蟄倅クュ�御シ壼惠蜷守サュ霓ョ谺。荳ュ菫晄戟豢サ蜉ィ�悟ケカ蝨ィ cordis_unmount縲∝キ・蜈キ髮�査霓ス謌� DSH 驥榊星蜷取カ亥、ア�帑ク堺シ夊�蜉ィ諱「螟阪€Atemporary` 譏ッ `plugins` 逧�ュ宣寔縲ら怐逡・ `what` 蜿ッ闔キ蜿門�驛ィ 6 荳ェ遶�闃ゅ€ゆスソ逕ィ `what:"api"` 謌� `what:"events"` 譌カ�悟庄莨�蜈・遑ョ蛻�噪 `name`�悟ー�激蝗エ郛ゥ蟆丞芦荳€荳ェ譛榊苅�丈コ倶サカ�悟ケカ蛹�性蜈カ蜴溷ァ区コ千�� JSDoc縲�
```json
{
"type": "object",
"properties": {
"what": {
"type": "string",
"description": "Limit the report to one section. Omit for all sections.",
"enum": [
"services",
"plugins",
"tools",
"temporary",
"api",
"events"
]
},
"name": {
"type": "string",
"description": "Exact service key or event name whose original JSDoc to include; valid only with what:\"api\" or what:\"events\"."
}
}
}
```
譚・貅撰シ喙`packages/self-modification/tool-cordis/src/index.ts`](../packages/self-modification/tool-cordis/src/index.ts)
### `cordis_mount`
2026-08-10 21:31:04 +08:00
蝨ィ蠖灘燕 DSH 霑帷ィ倶クュ謖りスス荳エ譌カ Cordis Plugin縲ょョ��蟒コ逧�弍蜀�ュ倅クュ逧�ソ占。梧慮 Plugin�瑚€御ク肴弍蟾イ螳芽」��蟾イ驟咲スョ逧� Plugin縲りッ・謠剃サカ莨壼惠蜷守サュ霓ョ谺。荳ュ菫晄戟豢サ蜉ィ�檎峩蛻ー謇ァ陦� cordis_unmount縲∝キ・蜈キ髮�査霓ス謌� DSH 驥榊星縲ょョ�ク堺シ壼�蟒コ譁�サカ縲∝ョ芽」�桁縲∽ソョ謾ケ cordis.yml 謌紋クェ莠コ�城。ケ逶ョ驟咲スョ縲∝惠驥榊星蜷惹ソ晉蕗�御ケ滉ク堺シ夊�蜉ィ霓ャ荳コ豌ク荵�薯莉カ縲り凶隕∽ソ晉蕗�瑚ッキ隶ゥ Agent 騾夊ソ�クク隗�シ€蜿大キ・菴懈オ∝ョ樒鴫 SDK Plugin 謌門庄螳芽」�噪 profile bundle縲ょョ�庄閭ス蠖ア蜩榊酔荳€霑帷ィ倶クュ逧��莉紋シ夊ッ晢シ帶イ咏ョア荳肴弍螳牙�霎ケ逡鯉シ梧ウィ蜈・逧�恪蜉。莨夊ョソ髣ョ逵溷ョ櫁ソ占。梧慮縲Acode` 莨夂ォ句叉菴應クコ蠑よュ・ JavaScript 蜃ス謨ー逧��謨ー菴灘惠髫皮ヲサ豐咏ョア荳ュ霑占。鯉シ悟ケカ荳�**蠢�。サ** `return` 荳€荳ェ謠剃サカ縲よ髪謖∽ク、遘榊ス「蠑擾シ壼�謨ー蠖「蠑� `return (ctx) => { 窶ヲ }`�悟ョ�ク榊」ー譏� inject�悟屏豁、蜿ッ莉・豕ィ蜀悟キ・蜈キ縲∫尅蜷ャ莠倶サカ蜥梧署萓帶恪蜉。�御ス�ョソ髣ョ**莉サ菴�**譛榊苅�井セ句ヲ� ctx.bash�蛾�莨壽鴨蜃コ蠑ょクク�帑サ�惠荳埼怙隕∵恪蜉。譌カ菴ソ逕ィ縲ょッケ雎。蠖「蠑� `return { name?, inject: ['bash', 'llm', 窶ヲ], apply(ctx) { 窶ヲ } }`�悟ョ�」ー譏惹セ晁オ厄シ靴ordis 蜿ェ蝨ィ譛榊苅蟄伜惠蜷取ソ€豢サ謠剃サカ��**莨伜�菴ソ逕ィ**霑咏ァ榊ス「蠑上€ゆス�蜿ェ閭ス隶ソ髣ョ inject 荳ュ蛻怜�逧�恪蜉。�壼叉菴ソ譛ェ螢ー譏守噪譛榊苅蟄伜惠�瑚ョソ髣ョ螳�ケ滉シ壽鴨蜃コ蠑ょクク�悟屏荳コ螯よ棡謠蝉セ帶婿陲ォ蜊ク霓ス�梧悴螢ー譏守噪萓晁オ門ー�裏豕墓ク�炊縲ゆサ」遐∬ー�畑譛榊苅**荵句燕**�瑚ッキ隸サ蜿� cordis_inspect 逧� what:"api"�帛ョ�シ壼�蜃コ譁ケ豕慕ュセ蜷堺サ・蜿雁盾謨ー�剰ソ泌屓蛟シ逧�アサ蝙句ス「迥カ�御ク崎ヲ∫懸豬句ュ玲ョオ邀サ蝙具シ御セ句ヲ� bash 霑占。檎噪 stdout 譏ッ蟇ケ雎。閠碁撼蟄礼ャヲ荳イ縲ょ惠 `apply` 蜀�シ瑚ッキ菴ソ逕ィ譬�㊥ Cordis API�夐€夊ソ� `ctx.on(event, listener)` 隗ょッ滉コ倶サカ�郁ァ� cordis_inspect 逧� what:"events"�会シ梧�隹�畑 `harness.registerTool(ctx, harness.defineTool({ name, description, parameters: { text: { type: 'string', required: true } }, output: { schema: { type: 'string' }, render(_args, value) { return [{ type: 'text', text: value }] } }, async execute(args) { return args.text } }))` 荳コ閾ェ蟾ア謠蝉セ帶眠蟾・蜈キ�幄ッ・蟾・蜈キ莨壼惠菴�逧�**荳倶ク€豁・鬪、**蜿ッ隹�畑縲ょキ・蜈キ蜿よ焚�壽ッ丈クェ髞ョ**蟆ア譏ッ**荳€荳ェ螻樊€ァ�悟叉 { type: 'string'|'number'|'integer'|'boolean'|'null'|'object'|'array'|'json', required?: true, description?, enum?, const?, items?, properties? }�帶ッ丈クェ逶エ謗・ DSL 蟇ケ雎。驛ス螢ー譏� additionalProperties: true|false�瑚€� oneOf: [schema, schema, ...] 莨壼叙莉」 type�瑚。ィ遉コ諱ー螂ス蛹ケ驟堺ク€荳ェ謌仙遭逧�#蜷医€ゆケ滓磁蜿怜次蟋� JSON Schema { type: 'object', properties, required?: [窶ヲ] } 蛹�」�アゑシ悟�荳ュ蟇ケ雎。鮟倩ョ、蠑€謾セ縲ょキ・蜈キ逧� `execute` **蠢�。サ**霑泌屓 `output.schema` 螢ー譏守噪譌�謐� JSON 蛟シ�嫣output.render(args, value)` 蜊慕峡霑泌屓 Native�乗ィ。蝙句�螳ケ蝮励€ゆクエ譌カ Plugin 蜿ッ莉・**扈�粋**�壻ク€荳ェ Plugin 蜿ッ莉・騾夊ソ� `ctx.provide('name', value)` 謠蝉セ帶恪蜉。�悟嘗荳€荳ェ蛻吝庄螢ー譏� `inject: ['name']` 譚・豸郁エケ螳�シ帶カ郁エケ譁ケ莨壼惠謠蝉セ帶婿蜃コ邇ー蜑堺ソ晄戟遲牙セ�シ梧署萓帶婿蜊ク霓ス蜷朱㍾譁ー蝗槫芦遲牙セ�憾諤√€ょ惠 `apply` 荳ュ豕ィ蜀檎噪荳€蛻��莨夂罰 cordis_unmount 閾ェ蜉ィ貂�炊縲よイ咏ョア蜈ィ螻€蟇ケ雎。�啻console`�亥クヲ `[cordis:<id>]` 譬�ュセ�悟�蜈・ harness 扈育ォッ�峨€~harness.defineTool`縲~harness.registerTool`縲~btoa`縲~atob`縲~TextEncoder`縲~TextDecoder`縲�ode API 蟾イ**遖∫畑**�壽枚莉カ邉サ扈滂シ冗ス醍サ懶シ丞ョ壽慮蟾・菴懷ソ�。サ騾夊ソ� Cordis 譛榊苅螳梧��檎サ昜ク崎�菴ソ逕ィ Node 蜀�スョ閭ス蜉幢シ嫣require`縲~setTimeout`�汁setInterval` 蜥� `fetch` 莨壽鴨蜃コ驥榊ョ壼髄髞呵ッッ�形process` 蜥� `Buffer` 譛ェ螳壻ケ峨€ょコ疲隼逕ィ inject: ['fs'] + ctx.fs 螟�炊譁�サカ縲(nject: ['web'] + ctx.web 螟�炊 HTTP縲(nject: ['bash'] + ctx.bash 螟�炊霑帷ィ九€(nject: ['timer'] + ctx.setTimeout/ctx.setInterval 螟�炊螳壽慮�郁ソ吩コ帶弍 fiber effect�悟査霓ス譌カ閾ェ蜉ィ貂�炊�会シ嫩ordis_inspect 逧� what:"api" 莨壼ア慕、コ**蠖灘燕**霑占。梧慮謠蝉セ帷噪閭ス蜉帙€りッキ郛門�**郤ッ** JavaScript�御ク崎ヲ∽スソ逕ィ TypeScript�井ク榊セ嶺スソ逕ィ `as` 謌也アサ蝙区ウィ隗」�峨€よウィ諢丈コ矩。ケ��(1) waterfall�育€大ク�シ丈コ倶サカ�我コ倶サカ�井セ句ヲ� tools/pre-execute�我シ壼髄逶大成蝎ィ莨�蜈・譛€蜷惹ク€荳ェ `next` 蝗櫁ー�シ瑚ッ・蝗櫁ー�**蠢�。サ**陲ォ隹�畑�帑ク崎ー�畑 `next()` 蟆ア霑泌屓莨�**遏ュ霍ッ**豁、谺。隹�畑縲る勁髱樔ス�譛画э諡ヲ謌
```json
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "JavaScript body returning a temporary Plugin; evaluated now and saved nowhere."
}
},
"required": [
"code"
]
}
```
譚・貅撰シ喙`packages/self-modification/tool-cordis/src/index.ts`](../packages/self-modification/tool-cordis/src/index.ts)
### `cordis_unmount`
蜊ク霓ス蠖灘燕霑帷ィ倶クュ逕ア cordis_mount 蛻帛サコ逧�クエ譌カ Plugin縲ょョ�シ夂ュ牙セ�ッ・謠剃サカ逧�キ・蜈キ縲∫尅蜷ャ蝎ィ縲∵恪蜉。縲∝ョ壽慮蝎ィ蜿雁�莉冶�譛画譜譫懷�驛ィ貂�炊螳梧�縲ょ宵謗・蜿� dyn-N 荳エ譌カ id�帶裏豕慕ァサ髯、 Loader縲∝キイ驟咲スョ謌門キイ螳芽」�噪 Plugin縲�
```json
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The temporary Plugin id returned by cordis_mount (for example \"dyn-1\"); valid only in this process and invalid after unmount or restart."
}
},
"required": [
"id"
]
}
```
譚・貅撰シ喙`packages/self-modification/tool-cordis/src/index.ts`](../packages/self-modification/tool-cordis/src/index.ts)
荳榊惠莉サ菴暮囂莠ァ蜩∝書蟶�噪譬台クュ�碁怙隕∵怏諢城€画叫蜷ッ逕ィ�帑クエ譌カ Plugin 莉」遐∝庄莉・隶ソ髣ョ逵溷ョ櫁ソ占。梧慮�瑚ァ� .agents/notes/implemented/feature/2026-07-08-self-referential-cordis-toolset.md縲ら罰 cordis_mount 蛻帛サコ逧�薯莉カ蝨ィ蜊ク霓ス謌� DSH 驥榊星荵句燕蜿ッ莉・豕ィ蜀�**鬚晏、也噪**讓。蝙句庄隗∝キ・蜈キ�帛書逕溯ソ咏アサ蟾・蜈キ髮�序譖エ譌カ�檎ウサ扈滉シ夊ョー蠖募ョ梧紛荳疲怏蜿伜勘逧�ッキ豎ょ、エ縲�
## `@deepseek-ai/dsh-tool-bash-persistent`
### `bash`
蝨ィ謖∽ケ� bash shell 荳ュ霑占。悟多莉、縲ょ桁諡ャ蠖灘燕逶ョ蠖募柱蟾イ蟇シ蜃コ邇ッ蠅�序驥丞惠蜀�噪迥カ諤∽シ壼惠豁、 agent 逧�、壽ャ。隹�畑荵矩龍菫晉蕗縲�
```json
{
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The bash command to run. Relative path is preferred in the command."
}
},
"required": [
"command"
]
}
```
譚・貅撰シ喙`packages/pty/tool-bash-persistent/src/index.ts`](../packages/pty/tool-bash-persistent/src/index.ts)
荳€荳ェ謖画園譛芽€�囈遖サ逧�戟荵� bash 蟾・蜈キ�幃Κ鄂イ扈�粋謠蝉セ� PTY 蜷守ォッ�悟ケカ蜿ッ隕�尠髱「蜷第ィ。蝙狗噪邇ッ蠅�緒霑ー縲�
## `@deepseek-ai/dsh-tool-str-replace-editor`
### `str_replace_editor`
逕ィ莠取衍逵九€∝�蟒コ蜥檎シ冶セ第枚莉カ逧��螳壻ケ臥シ冶セ大キ・蜈キ��
* 迥カ諤∽シ壼惠蜻ス莉、隹�畑莉・蜿贋ク守畑謌キ逧�ョィ隶コ荵矩龍謖∽ケ�ソ晉蕗
* 螯よ棡 `path` 譏ッ譁�サカ�形view` 莨壽仞遉コ蠎皮畑 `cat -n` 蜷守噪扈捺棡縲ょヲよ棡 `path` 譏ッ逶ョ蠖包シ形view` 莨壼�蜃コ譛€螟壼髄荳� 2 螻ら噪髱樣嚼阯乗枚莉カ蜥檎岼蠖�
* 螯よ棡謖�ョ夂噪 `create` 蜻ス莉、逶ョ譬� `path` 蟾イ菴應クコ譁�サカ蟄伜惠�悟�荳崎�菴ソ逕ィ隸・蜻ス莉、
* 螯よ棡 `command` 莠ァ逕溯セ�柄霎灘��瑚セ灘�莨夊「ォ謌ェ譁ュ蟷カ譬�ョー荳コ `<response clipped>`
菴ソ逕ィ `str_replace` 蜻ス莉、譌カ隸キ豕ィ諢擾シ�
* `old_str` 蜿よ焚蠎比ク主次譁�サカ荳ュ荳€陦梧�螟夊。瑚ソ樒サュ蜀�ョケ**螳悟�**蛹ケ驟阪€りッキ逡呎э遨コ逋ス蟄礼ャヲ��
* 螯よ棡 `old_str` 蜿よ焚蝨ィ譁�サカ荳ュ荳榊髪荳€�悟�荳堺シ壽鴬陦梧崛謐「縲りッキ遑ョ菫晏惠 `old_str` 荳ュ蛹�性雜ウ螟溽噪荳贋ク区枚�御スソ蜈カ蜚ッ荳€
* `new_str` 蜿よ焚蠎泌桁蜷ォ逕ィ莠取崛謐「 `old_str` 逧�キイ郛冶セ題。�
```json
{
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`.",
"enum": [
"view",
"create",
"str_replace",
"insert"
]
},
"path": {
"type": "string",
"description": "Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`."
},
"file_text": {
"type": "string",
"description": "Required parameter of `create` command, with the content of the file to be created."
},
"insert_line": {
"type": "integer",
"description": "Required parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`."
},
"new_str": {
"type": "string",
"description": "Optional parameter of `str_replace` command containing the new string (if not given, no string will be added). Required parameter of `insert` command containing the string to insert."
},
"old_str": {
"type": "string",
"description": "Required parameter of `str_replace` command containing the string in `path` to replace."
},
"view_range": {
"type": "array",
"description": "Optional parameter of `view` command when `path` points to a file. If none is given, the full file is shown. If provided, the file will be shown in the indicated line number range, e.g. [11, 12] will show lines 11 and 12. Indexing at 1 to start. Setting `[start_line, -1]` shows all lines from `start_line` to the end of the file.",
"items": {
"type": "integer"
}
}
},
"required": [
"command",
"path"
]
}
```
譚・貅撰シ喙`packages/fs/tool-str-replace-editor/src/index.ts`](../packages/fs/tool-str-replace-editor/src/index.ts)
蝓コ莠取枚莉カ邉サ扈� seam 逧�峡遶区衍逵具シ丞�蟒コ�丞髪荳€蟄鈴擇驥乗崛謐「�乗潔陦梧薯蜈・蟾・蜈キ�帛庄荳惹ササ菴� shell 謌也サ育ォッ謗・蜿」扈�粋縲�
## `@deepseek-ai/dsh-tool-fs`
### `edit`
騾夊ソ�崛謐「蟄鈴擇驥乗枚譛ャ譚・郛冶セ醍鴫譛� UTF-8 譁�悽譁�サカ縲�
```json
{
"type": "object",
"properties": {
"file_path": {
"type": "string",
"description": "Path to edit, resolved by the filesystem backend."
},
"old_string": {
"type": "string",
"description": "Literal text to replace. Must match exactly."
},
"new_string": {
"type": "string",
"description": "Literal replacement text. Use an empty string to delete the match."
},
"replace_all": {
"type": "boolean",
"description": "Replace all matches. Defaults to false; when false, old_string must appear exactly once."
}
},
"required": [
"file_path",
"old_string",
"new_string"
]
}
```
譚・貅撰シ喙`packages/fs/tool-fs/src/index.ts`](../packages/fs/tool-fs/src/index.ts)
### `read`
隸サ蜿� UTF-8 譁�悽譁�サカ�悟ケカ霑泌屓蟶ヲ陦悟捷逧��螳ケ縲�
```json
{
"type": "object",
"properties": {
"file_path": {
"type": "string",
"description": "Path to read, resolved by the filesystem backend."
},
"offset": {
"type": "number",
"description": "1-based first line to return. Defaults to 1."
},
"limit": {
"type": "number",
"description": "Maximum number of lines to return. Defaults to 2000."
}
},
"required": [
"file_path"
]
}
```
譚・貅撰シ喙`packages/fs/tool-fs/src/index.ts`](../packages/fs/tool-fs/src/index.ts)
### `read_image`
隸サ蜿� PNG/JPEG/WebP/GIF 譁�サカ蟷カ霑泌屓蝗セ蜒乗悽霄ォ縲りヲ∵アょス灘燕讓。蝙区磁蜿怜崟蜒剰セ灘�縲�
```json
{
"type": "object",
"properties": {
"file_path": {
"type": "string",
"description": "Path to the image file, resolved by the filesystem backend."
}
},
"required": [
"file_path"
]
}
```
譚・貅撰シ喙`packages/fs/tool-fs/src/index.ts`](../packages/fs/tool-fs/src/index.ts)
### `write`
蛻帛サコ謌門ョ悟�譖ソ謐「 UTF-8 譁�悽譁�サカ縲�
```json
{
"type": "object",
"properties": {
"file_path": {
"type": "string",
"description": "Path to write, resolved by the filesystem backend."
},
"content": {
"type": "string",
"description": "Full UTF-8 text content to write."
}
},
"required": [
"file_path",
"content"
]
}
```
譚・貅撰シ喙`packages/fs/tool-fs/src/index.ts`](../packages/fs/tool-fs/src/index.ts)
蜈郁ッサ蜷主��冗シ冶セ醍ュ也払逕ア `@deepseek-ai/dsh-fs-policy` 豺サ蜉��帛ョ�弍荳€荳ェ `fs/*` 莠倶サカ髣ィ遖∵薯莉カ�御ク堺シ壽隼蜿� schema縲ょ刈霓ス霑吩コ帛キ・蜈キ逧�Κ鄂イ謖蛾「�悄荵溷コ泌刈霓ス隸・謠剃サカ縲よイ。譛� `ctx.attachments` 譌カ `read_image` 荳堺シ壽ウィ蜀鯉シ帛� schema 荳手キッ逕ア譌�蜈ウ�梧鴬陦梧慮髯、髱樒。ョ蛻�キッ逕ア逧�ィ。蝙句」ー譏主崟蜒剰セ灘��悟凄蛻呎拠扈昴€�
## `@deepseek-ai/dsh-tool-fs-search`
### `glob`
譟・謇セ霍ッ蠕�源驟� glob 讓。蠑冗噪譁�サカ縲ょ宵霑泌屓蛹ケ驟咲噪譁�サカ霍ッ蠕�シ檎サ昜ク崎ソ泌屓逶ョ蠖包シ帛桁諡ャ髫占酪譁�サカ蜥瑚「ォ蠢ス逡・逧�枚莉カ�御ス�賜髯、 VCS 蜈�焚謐ョ逶ョ蠖輔€よ怙螟壽潔菫ョ謾ケ譌カ髣エ鬘コ蠎剰ソ泌屓 100 譚。霍ッ蠕�シ帛ヲよ棡扈捺棡譖エ螟夲シ悟�謾ケ荳コ霑泌屓莉朱。カ螻よ擅逶ョ荳ュ謚ス譬キ逧� 100 譚。霍ッ蠕�シ瑚ッエ譏主キイ謚ス譬キ�悟ケカ謚・蜻雁ョ梧紛謗貞コ丞�陦ィ逧�ソ晏ュ倅ス咲スョ縲りッ・蟾・蜈キ荳肴椢荳セ逶ョ蠖墓擅逶ョ縲�
```json
{
"type": "object",
"properties": {
"pattern": {
"type": "string",
"description": "Glob pattern to match file paths against (e.g. \"**/*.ts\", \"src/**/*.test.js\"). A pattern with no \"/\" matches the basename at any depth, so \"*\" and \"*.ts\" both search the whole tree; include a separator to anchor the depth."
},
"path": {
"type": "string",
"description": "Directory to search in. Defaults to the session workspace; a relative path resolves against it."
}
},
"required": [
"pattern"
]
}
```
譚・貅撰シ喙`packages/fs/tool-fs-search/src/index.ts`](../packages/fs/tool-fs-search/src/index.ts)
### `grep`
菴ソ逕ィ ripgrep 豁」蛻呵。ィ霎セ蠑乗頗邏「譁�サカ蜀�ョケ縲りソ泌屓蟶ヲ陦悟捷逧�源驟崎。鯉シ悟ケカ謖画枚莉カ蛻�サ�€ょ燕 250 譚。蛹ケ驟堺シ夂峩謗・霑泌屓�帷サ捺棡霎セ蛻ー荳企剞譌カ莨壽冠蜻雁ョ梧紛蛹ケ驟榊�陦ィ逧�ソ晏ュ倅ス咲スョ縲ょヲる怙蜻ィ霎ケ荳贋ク区枚�瑚ッキ蟇ケ蛹ケ驟咲噪譁�サカ菴ソ逕ィ read縲�
```json
{
"type": "object",
"properties": {
"pattern": {
"type": "string",
"description": "Regular expression to search for (ripgrep syntax)."
},
"path": {
"type": "string",
"description": "File or directory to search. Defaults to the session workspace; a relative path resolves against it."
},
"include": {
"type": "string",
"description": "One glob filter for which files to search (e.g. \"*.ts\", \"*.{js,jsx}\"). Not a list; negation is not supported."
}
},
"required": [
"pattern"
]
}
```
譚・貅撰シ喙`packages/fs/tool-fs-search/src/index.ts`](../packages/fs/tool-fs-search/src/index.ts)
glob 蜥� grep 譏ッ譌�譚。莉カ蜿ッ逕ィ逧�書邇ー蟾・蜈キ�碁€夊ソ� ctx.subprocess spawn 髫丞桁謠蝉セ帷噪 ripgrep 莠瑚ソ帛宛譁�サカ��@vscode/ripgrep`�会シ悟ケカ菴應クコ譎ョ騾壼燕蜿ー隹�畑霑占。鯉シ檎サ昜ク堺ス應クコ蜷主床莉サ蜉。�帶裏髴€蝨ィ螳ソ荳サ譛コ螳芽」� `rg`�御ケ滉ク咲サ剰ソ� shell 螻ゅ€よ悽逶ョ蠖穂スソ逕ィ `sampleOverCapGlobResults: true`�幃Κ鄂イ蠢�。サ譏セ蠑城€画叫隸・陦御クコ縲らサ捺棡雜�ソ�ク企剞譌カ�御シ夐€夊ソ�庄騾臥噪 ctx.spillStore 蜷守ォッ菫晏ュ伜ョ梧紛逧��シ蠑丞喧蛻苓。ィ�帛惠蜈ア鄂ョ驛ィ鄂イ荳ュ�悟ヲよ棡蜷守ォッ蜈ャ蠑€譛ャ蝨ー霍ッ蠕�シ瑚ソ泌屓逧�ョ壻ス堺ソ。諱ッ蜿ッ萓帛錘扈ュ隸サ蜿厄シ乗頗邏「縲�
## `@deepseek-ai/dsh-tool-pty`
### `terminal_close`
蜈ウ髣ュ荳€荳ェ謖∽ケ�サ育ォッ�悟ケカ遲牙セ��謐戊執荳疲園譛臥噪霑帷ィ区�大ョ悟�騾€蜃コ縲�
```json
{
"type": "object",
"properties": {
"sessionId": {
"type": "string",
"description": "Terminal session id."
}
},
"required": [
"sessionId"
]
}
```
譚・貅撰シ喙`packages/pty/tool-pty/src/index.ts`](../packages/pty/tool-pty/src/index.ts)
### `terminal_list`
蛻怜�蠖灘燕 agent 謇€譛臥噪謖∽ケ�サ育ォッ莨夊ッ昴€�
```json
{
"type": "object",
"properties": {}
}
```
譚・貅撰シ喙`packages/pty/tool-pty/src/index.ts`](../packages/pty/tool-pty/src/index.ts)
### `terminal_open`
騾夊ソ�キイ豕ィ蜀檎噪蜷守ォッ邀サ蝙句�蟒コ謖画園譛芽€�囈遖サ逧�戟荵�サ育ォッ莨夊ッ昴€る怙隕∝惠螟壽ャ。蟾・蜈キ隹�畑荵矩龍菫晉蕗 shell 謌� REPL 迥カ諤∵慮�瑚ッキ菴ソ逕ィ豁、蟾・蜈キ縲�
```json
{
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Registered terminal backend type, usually \"shell\"."
},
"name": {
"type": "string",
"description": "Optional owner-local display name such as \"main\" or \"gdb\"."
},
"cwd": {
"type": "string",
"description": "Initial working directory. Defaults to the deployment workspace root."
}
},
"required": [
"type"
]
}
```
譚・貅撰シ喙`packages/pty/tool-pty/src/index.ts`](../packages/pty/tool-pty/src/index.ts)
### `terminal_read`
莉取戟荵�サ育ォッ隸サ蜿紋ク€鬘オ譛臥阜逧�ソ晉蕗霎灘��御ク榊書騾∬セ灘�縲�
```json
{
"type": "object",
"properties": {
"sessionId": {
"type": "string",
"description": "Terminal session id."
},
"offset": {
"type": "number",
"description": "Newest-relative line offset (default 0)."
},
"count": {
"type": "number",
"description": "Requested line count (default 500; backend caps apply)."
}
},
"required": [
"sessionId"
]
}
```
譚・貅撰シ喙`packages/pty/tool-pty/src/index.ts`](../packages/pty/tool-pty/src/index.ts)
### `terminal_send`
蜷第戟荵�サ育ォッ蜿鷹€∵枚譛ャ縲るサ倩ョ、莨壽署莠、 Enter�悟ケカ遲牙セ�署遉コ隨ヲ縲《tdin 遲牙セ�€∬セ灘�髱咎サ倥€∬カ�慮謌紋シ夊ッ晞€€蜃コ縲ょ錘蜿ー讓。蠑丈シ夊ソ泌屓萓� task_output�春ask_kill 菴ソ逕ィ逧� task id縲�
```json
{
"type": "object",
"properties": {
"sessionId": {
"type": "string",
"description": "Terminal session id returned by terminal_open or terminal_list."
},
"text": {
"type": "string",
"description": "UTF-8 text to write to the terminal."
},
"submit": {
"type": "boolean",
"description": "Submit Enter after text (default true). Set false for control characters or incomplete REPL input."
},
"run_in_background": {
"type": "boolean",
"description": "Return a task id immediately; collect with task_output or stop with task_kill."
}
},
"required": [
"sessionId",
"text"
]
}
```
譚・貅撰シ喙`packages/pty/tool-pty/src/index.ts`](../packages/pty/tool-pty/src/index.ts)
### `terminal_signal`
蜷第戟荵�サ育ォッ蠖灘燕逧�燕蜿ー霑帷ィ狗サ�書騾∝�隶ク逧�ソ。蜿キ縲�
```json
{
"type": "object",
"properties": {
"sessionId": {
"type": "string",
"description": "Terminal session id."
},
"signal": {
"type": "string",
"description": "Signal to deliver. Shell-targeted SIGKILL is rejected; use terminal_close.",
"enum": [
"SIGINT",
"SIGTERM",
"SIGKILL",
"SIGTSTP",
"SIGHUP"
]
}
},
"required": [
"sessionId",
"signal"
]
}
```
譚・貅撰シ喙`packages/pty/tool-pty/src/index.ts`](../packages/pty/tool-pty/src/index.ts)
霑� 6 荳ェ扈育ォッ蟾・蜈キ髴€隕�€画叫蜷ッ逕ィ�檎畑莠手。・蜈�ク€谺。諤ァ bash�乗枚莉カ邉サ扈溷キ・蜈キ縲Aterminal_send(run_in_background: true)` 莨壽ウィ蜀悟芦 `ctx.tasks`�孕chema 荳榊桁蜷ォ TUI縲∝�蜷肴潔髞ョ蠎丞�縲。EL縲∬ー�紛蟆コ蟇ク縲∬�蜉ィ蜷ッ蜉ィ蜥瑚キィ agent 蜈ア莠ォ縲�
## `@deepseek-ai/dsh-tool-goal`
### `create_goal`
蠖灘ス灘燕逶エ謗・莠コ邀サ隸キ豎よ弍髴€隕∬キィ閾ェ荳サ Goal Round 謖∫サュ謗ィ霑帷噪髟ソ譛溽岼譬�慮�悟�蟒コ荳€荳ェ謖∽ケ�喧逧�酔莨夊ッ晏ョ梧�逶ョ譬�€ょ叉菴ソ逕ィ謌キ豐。譛画�遑ョ隸エ縲悟�蟒コ逶ョ譬�€搾シ御ス�荵溷庄莉・謗ィ譁ュ蜈カ諢丞崟縲ゆク崎ヲ∫畑莠守ョ€蜊慕噪蜊戊スョ蟾・菴懊€よ鴬陦梧慮莨壽拠扈晞撼莠コ邀サ譚�剞蜥� subagent 譚�剞縲�
```json
{
"type": "object",
"properties": {
"objective": {
"type": "string",
"description": "The concrete completion objective inferred from the direct human request."
},
"max_goal_rounds": {
"type": "number",
"description": "Optional positive safe-integer limit on automatic continuation rounds."
}
},
"required": [
"objective"
]
}
```
譚・貅撰シ喙`packages/goal/tool-goal/src/index.ts`](../packages/goal/tool-goal/src/index.ts)
### `get_goal`
隸サ蜿門ス灘燕逧�酔莨夊ッ晉岼譬�シ悟桁諡ャ遑ョ蛻�噪 id�俊evision縲∫岼譬�€�亳谿オ縲∝キイ螳梧�逧�サカ扈ュ Round 謨ー縲ヽound 荳企剞縲∝ュ伜惠譌カ逧�仆蝪槫次蝗��御サ・蜿頑弍蜷ヲ蟾イ蜃�、�ク倶ク€谺。蟒カ扈ュ縲よ峩譁ー逶ョ譬�燕隸キ蜈郁ー�畑豁、蟾・蜈キ縲�
```json
{
"type": "object",
"properties": {}
}
```
譚・貅撰シ喙`packages/goal/tool-goal/src/index.ts`](../packages/goal/tool-goal/src/index.ts)
### `update_goal`
譖エ譁ー遑ョ蛻�噪蠖灘燕逶ョ譬� revision縲Fdit縲}ause 蜥� resume 隕∵アら峩謗・逧�。カ螻ゆココ邀サ隸キ豎ゅ€ょ惠閾ェ蜉ィ蟒カ扈ュ蠖灘燕逶ョ譬�悄髣エ�御ケ溷�隶ク complete 蜥� blocked縲ょ惠霎セ蛻ー驟咲スョ逧�怙蟆� Round 謨ー荵句燕莨壽拠扈� blocked�帶ィ。蝙倶サ埼。サ蛻、譁ュ逶ク蜷梧擅莉カ譏ッ蜷ヲ蝨ィ霑吩コ� Round 荳ュ謖∫サュ蟄伜惠�悟ケカ蝨ィ blocked_reason 荳ュ莠井サ・隸エ譏弱€�
```json
{
"type": "object",
"properties": {
"goal_id": {
"type": "string",
"description": "Exact id returned by get_goal."
},
"revision": {
"type": "number",
"description": "Exact positive revision returned by get_goal."
},
"action": {
"type": "string",
"description": "edit | pause | resume | complete | blocked",
"enum": [
"edit",
"pause",
"resume",
"complete",
"blocked"
]
},
"objective": {
"type": "string",
"description": "Replacement objective; valid only with action edit."
},
"max_goal_rounds": {
"type": "number",
"description": "Replacement cap; valid only with action edit."
},
"blocked_reason": {
"type": "string",
"description": "Concrete blocking condition; required only with action blocked."
}
},
"required": [
"goal_id",
"revision",
"action"
]
}
```
譚・貅撰シ喙`packages/goal/tool-goal/src/index.ts`](../packages/goal/tool-goal/src/index.ts)
create縲‘dit縲}ause 蜥� resume 隕∵アら峩謗・譚・閾ェ莠コ邀サ逧��ケ譚�剞�嫩omplete 蜥� blocked 荵滓磁蜿礼。ョ蛻�噪蠖灘燕 Goal Round縲Clocked 逧�サ倩ョ、荳矩剞譏ッ 3 荳ェ闔キ蜃�噪 Round縲�
## `@deepseek-ai/dsh-tool-schedule`
### `schedule_create`
蝨ィ蠖灘燕莨夊ッ昜クュ蛻帛サコ荳€譚。謠宣�縲りッキ謠蝉セ幃撼遨コ prompt 蜥梧�螂ス荳€荳ェ selector�壽ュ」逧�ョ牙�謨エ謨ー after_seconds 蟒カ譌カ�帑ス應クコ荳・譬シ蟶ヲ蛛冗ァサ譌・譛滓慮髣エ謌匁悽蝨ー譌・譛滂シ乗慮髣エ蟇ケ雎。逧� at�帶�荳榊ー丈コ� 300 逧�ョ牙�謨エ謨ー every_seconds縲ょ崋螳夐€溽紫謠宣�蟋狗サ井ク主�蟒コ譌カ蛻サ蟇ケ鮨撰シ御シ夊キウ霑�漠霑�噪蜿醍函譌カ轤ケ�悟ケカ謚頑ッ乗擅騾セ譛溯ァ��逧�怙譁ー荳€荳ェ蜿醍函譌カ轤ケ蜷亥ケカ蛻ー荳€荳ェ謇ケ谺。荳ュ縲ゆコ、莉俶ィ。蠑乗弍 session-local�壼宵譛画ュ、莨夊ッ晏、�コ� live 迥カ諤∵慮�梧署驢呈燕莨壼㊥譌カ霑占。鯉シ帛凄蛻呎署驢剃シ夊ソ帛� overdue 迥カ諤�シ檎峩閾ウ莨夊ッ晄△螟阪€�
```json
{
"type": "object",
"properties": {
"prompt": {
"type": "string",
"description": "Reminder content to present when the target becomes due."
},
"after_seconds": {
"type": "number",
"description": "Positive safe-integer delay in seconds."
},
"every_seconds": {
"type": "number",
"description": "Fixed-rate safe-integer interval in seconds, at least 300."
},
"at": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"date": {
"type": "string"
},
"time": {
"type": "string"
},
"time_zone": {
"type": "string"
}
},
"required": [
"date",
"time",
"time_zone"
]
}
],
"description": "Absolute target as strict offset RFC 3339 or local date/time with an explicit IANA zone."
}
},
"required": [
"prompt"
]
}
```
譚・貅撰シ喙`packages/schedule/tool-schedule/src/tools.ts`](../packages/schedule/tool-schedule/src/tools.ts)
### `schedule_delete`
菴ソ逕ィ schedule_create 謌� schedule_list 霑泌屓逧�。ョ蛻� id�悟唖髯、蠖灘燕莨夊ッ昜クュ逧�ク€譚。豢サ蜉ィ謠宣�縲よ悴遏・謌門キイ扈冗サ捺據逧� id 莨夊ソ泌屓 deleted false縲�
```json
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Exact session-local schedule id."
}
},
"required": [
"id"
]
}
```
譚・貅撰シ喙`packages/schedule/tool-schedule/src/tools.ts`](../packages/schedule/tool-schedule/src/tools.ts)
### `schedule_list`
謖牙�蟒コ鬘コ蠎丞�蜃コ蠖灘燕莨夊ッ昜クュ逧�園譛画エサ蜉ィ謠宣��悟桁諡ャ遑ョ蛻� id縲ゞTC 逶ョ譬�€《cheduled 謌� overdue 迥カ諤�シ御サ・蜿� session-local 莠、莉俶ィ。蠑上€�
```json
{
"type": "object",
"properties": {}
}
```
譚・貅撰シ喙`packages/schedule/tool-schedule/src/tools.ts`](../packages/schedule/tool-schedule/src/tools.ts)
莉�惠騾画叫蜷ッ逕ィ逧� Schedule 謠剃サカ蜉�霓ス蜷主�蟒コ逧� live 譬ケ Agent scope 蜀�ウィ蜀後€ら沿譛ャ 1 謗・蜿� after_seconds縲∵仞蠑冗サ晏ッケ at 蜥梧怏逡悟崋螳夐€溽紫 every_seconds�悟ケカ謚ォ髴イ session-local 莠、莉假シ帷ョ。逅�ッサ蜿紋ク主序譖エ蠢�。サ騾夊ソ��莠ォ逧� Session 謖∽ケ�喧 barrier縲�
## `@deepseek-ai/dsh-tool-lsp`
### `lsp`
譟・隸「隸ュ險€譛榊苅蝎ィ�御サ・邊セ遑ョ蟇シ闊ェ莉」遐√€Pperation 蜿ッ蜿� goToDefinition縲’indReferences縲“oToImplementation 謌� hover縲Mine 蜥� character 譏ッ莉� 1 蠑€蟋狗噪 UTF-16 蜈画��攝譬�€GindReferences 蛹�性螢ー譏弱€�
```json
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"description": "goToDefinition, findReferences, goToImplementation, or hover.",
"enum": [
"goToDefinition",
"findReferences",
"goToImplementation",
"hover"
]
},
"file_path": {
"type": "string",
"description": "The source file to query, relative to the workspace or absolute."
},
"line": {
"type": "number",
"description": "One-based line of the cursor."
},
"character": {
"type": "number",
"description": "One-based UTF-16 column of the cursor."
}
},
"required": [
"operation",
"file_path",
"line",
"character"
]
}
```
譚・貅撰シ喙`packages/lsp/tool-lsp/src/index.ts`](../packages/lsp/tool-lsp/src/index.ts)
lsp 蟾・蜈キ蟆�署萓帶婿騾画叫蜥瑚ッュ險€譛榊苅蝎ィ蟄占ソ帷ィ狗スョ莠� ctx.lsp 荵句錘�悟屏豁、蜈カ讓。蝙句庄隗� schema 蝨ィ譖エ謐「謠蝉セ帶婿譌カ菫晄戟遞ウ螳壹€りソ占。梧慮隕∵アょキイ豕ィ蜀梧署萓帶婿�御セ句ヲ� `@deepseek-ai/dsh-lsp-local`�帛ヲよ棡豐。譛画署萓帶婿�梧衍隸「莨夊ソ泌屓扈捺桷蛹� `LSP_UNAVAILABLE` 髞呵ッッ�瑚€御ク堺シ壽隼蜿� schema縲�
## `@deepseek-ai/dsh-tool-ralph`
### `ralph`
蝗エ扈穂ク€荳ェ荳榊庄蜿倡岼譬�ソ占。御スソ逕ィ蜈ィ譁ー agent 逧�燕蜿ー Ralph 蠕ェ邇ッ縲ゆサ�ス鍋峩謗・莠コ邀サ譏守。ョ隕∵ア� Ralph 謌紋スソ逕ィ蜈ィ譁ー agent 霑ュ莉」譌カ菴ソ逕ィ縲よッ丈クェ Round 驛ス莨壼星蜉ィ荳€荳ェ蜈ィ譁ー蟄千コァ�瑚ッ・蟄千コァ逵倶ク榊芦辷カ郤ァ蟇ケ隸晄�蜈亥燕蟄蝉シ夊ッ晢シ帛�莠ォ蟾・菴懷玄蜈�ス馴柄譛溯ョー蠢�シ軍ound 荵矩龍蜿ェ莨�騾呈怏逡檎噪扈捺桷蛹匁冠蜻翫€ょス灘キ・菴懆ソ帷ィ区冠蜻雁ョ梧�縲∵冠蜻雁�菴馴仆蝪樣。ケ謌冶セセ蛻ー Round 荳企剞譌カ�瑚ー�畑霑泌屓縲よ勸騾夂噪髟ソ譛溷酔莨夊ッ晏キ・菴懷コ比スソ逕ィ goal 蟾・蜈キ縲�
```json
{
"type": "object",
"properties": {
"objective": {
"type": "string",
"description": "The immutable completion objective for every fresh Ralph round."
},
"maxRounds": {
"type": "number",
"description": "Optional positive safe-integer round cap, bounded by the deployment ceiling."
}
},
"required": [
"objective"
]
}
```
譚・貅撰シ喙`packages/workflow/tool-ralph/src/index.ts`](../packages/workflow/tool-ralph/src/index.ts)
蝗コ螳夂噪蜑榊床蟾・菴懈オ∽シ壼惠豈丈クェ Round 蜷ッ蜉ィ荳€荳ェ蜈ィ譁ー逧�サ捺桷蛹門ュ千コァ�帶ィ。蝙句宵閭ス騾画叫荳榊庄蜿倡岼譬�柱蜿ッ騾臥噪 Round 荳企剞縲�
## `@deepseek-ai/dsh-tool-skill`
### `skill`
蜉�霓ス蜿ッ逕ィ skill�域橿閭ス�臥噪螳梧紛隸エ譏弱€ょ惠謇ァ陦檎せ蜷肴汾鬘ケ skill 謌紋ク主�譏守。ョ蛹ケ驟咲噪莉サ蜉。蜑搾シ瑚ッキ菴ソ逕ィ莨夊ッ� skill 逶ョ蠖穂クュ逧�。ョ蛻�錐遘ー隹�畑豁、蟾・蜈キ縲�
```json
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The exact skill name from the available skills list."
}
},
"required": [
"name"
]
}
```
譚・貅撰シ喙`packages/skill/tool-skill/src/index.ts`](../packages/skill/tool-skill/src/index.ts)
## `@deepseek-ai/dsh-tool-session-query`
### `session_event_read`
莉惹ク€荳ェ蟾イ闔キ謗域揀逧�シ夊ッ昜クュ隸サ蜿紋ク€荳ェ螳梧紛荳疲悴蛻�闃ら噪莠倶サカ�御サ・蜿雁庄騾臥噪逶ク驍サ蜴溷ァ倶コ倶サカ讎りソー縲�
```json
{
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "Target session id. Omit for the current session."
},
"seq": {
"type": "integer",
"description": "Target event sequence number."
},
"before": {
"type": "integer",
"description": "Number of preceding raw events to summarize. Omit for none."
},
"after": {
"type": "integer",
"description": "Number of following raw events to summarize. Omit for none."
}
},
"required": [
"seq"
]
}
```
譚・貅撰シ喙`packages/session-query/tool-session-query/src/index.ts`](../packages/session-query/tool-session-query/src/index.ts)
### `session_event_search`
蝨ィ荳€荳ェ蟾イ闔キ謗域揀逧�シ夊ッ昜クュ謳懃エ「蜈亥燕莠倶サカ�帛ヲよ棡謳懃エ「蠖灘燕莨夊ッ晢シ悟�謗帝勁謇ァ陦梧ュ、谺。隹�畑逧�ュ・鬪、縲�
```json
{
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "Target session id. Omit for the current session."
},
"query": {
"type": "string",
"description": "Literal full-text query over the target session."
},
"seq_from": {
"type": "integer",
"description": "Inclusive event sequence lower bound."
},
"seq_to": {
"type": "integer",
"description": "Inclusive event sequence upper bound."
},
"time_from": {
"type": "string",
"description": "Inclusive timezone-qualified ISO 8601 event-time lower bound."
},
"time_to": {
"type": "string",
"description": "Inclusive timezone-qualified ISO 8601 event-time upper bound."
},
"event_types": {
"type": "array",
"description": "Event types to include.",
"items": {
"type": "string"
}
},
"surfaces": {
"type": "array",
"description": "Event surfaces to include.",
"items": {
"type": "string",
"enum": [
"current",
"shadowed",
"log-only"
]
}
}
},
"required": [
"query"
]
}
```
譚・貅撰シ喙`packages/session-query/tool-session-query/src/index.ts`](../packages/session-query/tool-session-query/src/index.ts)
### `session_event_trace`
隸サ蜿門キイ闔キ謗域揀莨夊ッ昜クュ譟蝉クェ莠倶サカ逧�園譛臥峩謗・譖ソ謐「蜈ウ邉サ�御サ・蜿願ッ・莠倶サカ荳主�蠑慕畑逧�擂貅蝉コ倶サカ荵矩龍逧��邉サ縲�
```json
{
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "Target session id. Omit for the current session."
},
"seq": {
"type": "integer",
"description": "Target event sequence number."
}
},
"required": [
"seq"
]
}
```
譚・貅撰シ喙`packages/session-query/tool-session-query/src/index.ts`](../packages/session-query/tool-session-query/src/index.ts)
### `session_search`
謳懃エ「隹�畑譁ケ蟾・菴懷玄荳ュ逧��蜑堺シ夊ッ晢シ悟ケカ莉取ッ丈クェ莨夊ッ晁ソ泌屓蛹ケ驟榊コヲ譛€鬮倡噪莠倶サカ縲�
```json
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Literal full-text query over prior session history."
},
"session_ids": {
"type": "array",
"description": "Optional session ids to include.",
"items": {
"type": "string"
}
},
"created_at_from": {
"type": "string",
"description": "Inclusive timezone-qualified ISO 8601 creation-time lower bound."
},
"created_at_to": {
"type": "string",
"description": "Inclusive timezone-qualified ISO 8601 creation-time upper bound."
},
"parent_session_ids": {
"type": "array",
"description": "Optional direct parent session ids.",
"items": {
"type": "string"
}
},
"include_root_sessions": {
"type": "boolean",
"description": "Include sessions with no parent in the parent filter."
},
"availability": {
"type": "array",
"description": "Require at least one selected source availability.",
"items": {
"type": "string",
"enum": [
"live",
"persisted"
]
}
},
"event_seq_from": {
"type": "integer",
"description": "Inclusive event sequence lower bound."
},
"event_seq_to": {
"type": "integer",
"description": "Inclusive event sequence upper bound."
},
"event_time_from": {
"type": "string",
"description": "Inclusive timezone-qualified ISO 8601 event-time lower bound."
},
"event_time_to": {
"type": "string",
"description": "Inclusive timezone-qualified ISO 8601 event-time upper bound."
},
"event_types": {
"type": "array",
"description": "Event types to include.",
"items": {
"type": "string"
}
},
"event_surfaces": {
"type": "array",
"description": "Event surfaces to include.",
"items": {
"type": "string",
"enum": [
"current",
"shadowed",
"log-only"
]
}
}
},
"required": [
"query"
]
}
```
譚・貅撰シ喙`packages/session-query/tool-session-query/src/index.ts`](../packages/session-query/tool-session-query/src/index.ts)
### `session_trace`
隸サ蜿門峩扈穂ク€荳ェ莨夊ッ晉噪蟾イ謗域揀莨夊ッ晁ーア邉サ�悟桁諡ャ螳梧紛蜿ッ隗∫噪逾門�蜥悟錘莉」蜈ウ邉サ縲�
```json
{
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "Target session id. Omit for the current session."
}
}
}
```
譚・貅撰シ喙`packages/session-query/tool-session-query/src/index.ts`](../packages/session-query/tool-session-query/src/index.ts)
霑� 5 荳ェ蜿ェ隸サ蟾・蜈キ莨夐嚼阯乗署萓帶婿貂ク譬�シ悟ケカ譬ケ謐ョ荳榊庄蜿倡噪隹�畑 agent 莨夊ッ昜クコ豈丈クェ扈捺棡謗域揀縲りッ・蛹�怙隕�€画叫蜷ッ逕ィ�幃怙隕∝シコ蛻カ謌ェ豁「譌カ髣エ謌夜剞蛻カ陦悟�霎灘�逧�サ�粋霑倅シ壽撃霓ス騾夂畑雜�慮謌� spill 遲也払縲�
## `@deepseek-ai/dsh-tool-subagent`
### `subagent`
蟆�ク€鬘ケ閾ェ蛹�性莉サ蜉。蟋疲エセ扈� subagent�亥惠閾ェ霄ォ荳贋ク区枚荳ュ蟾・菴懃噪迢ャ遶� agent�会シ檎畑螳�査霓ス閨夂┬荳皮峡遶狗噪蟾・菴懶シ御セ句ヲら�皮ゥカ縲�剞螳夊激蝗エ逧�ョ樒鴫謌門�譫撰シ御サ・蜈肴カ郁€怜ス灘燕蟇ケ隸晉噪荳贋ク区枚縲Tubagent 莨夊ソ泌屓扈捺棡�御ス�ク堺シ夊ソ泌屓荳ュ髣エ豁・鬪、縲りッキ謠蝉セ帛ョ梧紛縲∫峡遶狗噪謠千、コ隸搾シ悟屏荳コ螳�恚荳榊芦蠖灘燕蟇ケ隸昴€よュ、隹�畑鮟倩ョ、遲牙セ�サ捺棡縲りョセ鄂ョ `run_in_background: true` 蜿ッ霑泌屓 task id�帑スソ逕ィ `task_output` 謾カ髮�サ捺棡�御スソ逕ィ `task_kill` 蛛懈ュ「莉サ蜉。縲�
```json
{
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "A short (3-5 word) description of the delegated task, for display."
},
"prompt": {
"type": "string",
"description": "The complete, self-contained task for the subagent. It does not share this conversation's context, so include everything it needs."
},
"run_in_background": {
"type": "boolean",
"description": "Whether to run as a background task and return its id. Defaults to false; collect with task_output or stop with task_kill."
}
},
"required": [
"description",
"prompt"
]
}
```
譚・貅撰シ喙`packages/subagent/tool-subagent/src/index.ts`](../packages/subagent/tool-subagent/src/index.ts)
豕ィ蜀檎噪蟾・蜈キ蜷咲ァー蜿門�莠主刈霓ス譌カ `toolName` 驟咲スョ�磯サ倩ョ、荳コ `subagent`�会シ帑ク願ソー schema 蟇ケ蠎秘サ倩ョ、蛟シ縲る囂莠ァ蜩∝書蟶�噪扈�粋莨壻クコ豈丈クェ subagent 蜷守ォッ蜉�霓ス荳€谺。隸・蛹�シ悟屏豁、讓。蝙玖ソ倅シ夂恚蛻ー扈大ョ壼芦 fork 蜷守ォッ逧� `subagent_fork`縲よッ丈クェ螳樔セ狗噪謠剰ソー縲~run_in_background` 蜿よ焚荳� system prompt 遲也払蜿門�莠主ョ��蟾ア逧� `backgroundMode` 蜥� `enableRunInBackground`�悟屏豁、荳、荳ェ髫城刋 schema 蟷カ荳咲嶌蜷鯉シ啻subagent` 荳コ `continuable`�檎怐逡・蜿よ焚譌カ鮟倩ョ、蜷主床霑占。鯉シ悟ケカ逕ア runtime 閾ェ蜉ィ謚暮€堤サ捺據扈捺棡�嫣subagent_fork` 菫晄戟 `one-shot`�檎怐逡・蜿よ焚譌カ鮟倩ョ、蜑榊床霑占。後€りッヲ隗� `packages/bundle/base/cordis.patch.yml` 蜥� `examples/acp-agent/cordis.yml`縲�
## `@deepseek-ai/dsh-tool-subagent-control`
### `interrupt_agent`
譬ケ謐ョ agent id 隸キ豎ょ叙豸亥錘蜿ー agent 逧�ス灘燕霓ョ谺。縲ら岼譬�庄莉・譏ッ菴�逧�峩謗・蟄千コァ�御ケ溷庄莉・譏ッ蝨ィ菴�荳区婿蛻帛サコ逧�峩豺ア螻� agent縲ょ宵譛牙ス灘燕霓ョ谺。莨壼●豁「�壼キイ扈乗賜髦溷書扈呵ッ・ agent 逧�カ域�莨壻ク€逶エ謳∫スョ蛻ー蜷守サュ逧� send_message�帛ョ�星蜉ィ逧� agent 莨夂サァ扈ュ霑占。鯉シ幄ッ・ agent 譛ャ霄ォ莉榊庄謗・蜿怜錘扈ュ謫堺ス懊€ょ●豁「隸キ豎り「ォ謗・蜿怜錘�梧ュ、隹�畑遶句叉霑泌屓�悟屏豁、逶ョ譬�庄閭ス霑倅シ夂洒證りソ占。鯉シ帑クュ譁ュ荳€荳ェ蟾イ扈丞ョ梧�逧� agent 譏ッ蜿ッ謗・蜿礼噪遨コ謫堺ス懊€�
```json
{
"type": "object",
"properties": {
"agent_id": {
"type": "string",
"description": "The agent id of the running agent to interrupt."
}
},
"required": [
"agent_id"
]
}
```
譚・貅撰シ喙`packages/subagent/tool-subagent-control/src/index.ts`](../packages/subagent/tool-subagent-control/src/index.ts)
### `list_agents`
謖画戟荵� id 蜥梧��ュセ蛻怜�菴�逧�庄扈ァ扈ュ蜷主床 subagent縲ら畑螳�屓蠢�ス�蜷ッ蜉ィ霑�頭莠� subagent�瑚€御ク肴弍霓ョ隸「螳梧�諠��窶披€敗ubagent 螳梧�譌カ菴�莨夊「ォ蜻顔衍縲ら憾諤∵擂閾ェ螳樊慮豕ィ蜀瑚。ィ�嗷unning 陦ィ遉コ agent 豁、蛻サ豁」蝨ィ蟾・菴懶シ嬖dle 陦ィ遉コ蟾イ蜉�霓ス菴�、�コ手スョ谺。荵矩龍�悟庄閭ス豁」蝨ィ遲牙セ�ョ�星蜉ィ逧� agent�孑eady 陦ィ遉コ螳�宵蟄伜惠莠主ュ伜お荳ュ窶披€泌庄諱「螟崎€碁撼扈域€�シ御ケ滉ク崎。ィ遉コ譛臥サ捺棡遲牙セ�噺髮�シ嫣send_message` 莨壼惠蜷御ク€蟇ケ隸昜ク雁シ€蜷ッ譁ー逧�スョ谺。�御ク疲裏隶コ螟�コ主頭遘咲憾諤�シ檎峩謗・蟄千コァ驛ス莉榊庄菴應クコ `send_message` 逧�岼譬�€りッ・蠢ォ辣ァ蟷カ髱樊兜騾呈価隸コ�嫣send_message` 莨壽鴬陦梧揀螽∵」€譟・�御サ榊庄閭ス螟ア雍・縲よ裏豕戊ッサ蜿也噪蟄千コァ莨壻ス應クコ隸頑妙菫。諱ッ謚・蜻奇シ瑚€御ク堺シ夊「ォ髱咎サ倅ク「蠑�€Adescendants` 菴懃畑蝓滉シ壽潔遞ウ螳夂噪蜑榊コ城。コ蠎城″蜴�ス�荳区婿逧�紛譽オ譬托シ悟ケカ荳コ豈丈クェ譚。逶ョ譬�ウィ蜈カ謖∽ケ�噪逶エ謗・辷カ莨夊ッ� id 蜥梧キア蠎ヲ縲ょ宵譛画キア蠎ヲ荳コ 1 逧�擅逶ョ蜿ッ莉・菴ソ逕ィ `send_message`�帶峩豺ア逧�擅逶ョ蜿ェ閭ス菴應クコ `interrupt_agent` 逧�€咎€臥岼譬�€�
```json
{
"type": "object",
"properties": {
"scope": {
"type": "string",
"description": "children (default) lists direct children only; descendants walks the complete tree below you.",
"enum": [
"children",
"descendants"
]
}
}
}
```
譚・貅撰シ喙`packages/subagent/tool-subagent-control/src/list-agents.ts`](../packages/subagent/tool-subagent-control/src/list-agents.ts)
### `send_message`
譬ケ謐ョ subagent id 蜷大錘蜿ー subagent 蜿鷹€∵カ域��檎サァ扈ュ蜷御ク€谿オ蟇ケ隸昴€りッ・豸域�莨壽�荳コ subagent 逧�ク倶ク€霓ョ谺。�壼ヲよ棡螳�サ榊惠蟾・菴懶シ梧カ域�莨夂ュ牙セ�ス灘燕霓ョ谺。扈捺據�悟屏豁、譌�豕墓隼蜿伜キイ扈丞シ€蟋狗噪蟾・菴懈婿蜷代€よュ、隹�畑荳堺シ夊ソ泌屓 subagent 逧�ュ疲。茨シ悟宵莨夂。ョ隶、豸域�蟾イ謚暮€抵シ悟屏豁、隸キ逕ィ螳��豢セ譖エ螟壼キ・菴懊€りー�畑螟ア雍・陦ィ遉コ豸域�**譛ェ**謚暮€偵€�
```json
{
"type": "object",
"properties": {
"subagent_id": {
"type": "string",
"description": "The subagent id returned when the background subagent was started."
},
"message": {
"type": "string",
"description": "The message to deliver to the subagent."
}
},
"required": [
"subagent_id",
"message"
]
}
```
譚・貅撰シ喙`packages/subagent/tool-subagent-control/src/index.ts`](../packages/subagent/tool-subagent-control/src/index.ts)
霑吩コ帶弍謗ァ蛻カ蜿ッ扈ァ扈ュ蜷主床 subagent 逧��螻€蜻ス蜷榊キ・蜈キ�夂サ大ョ壽署萓帶婿逧� `tool-subagent` 螳樔セ区ウィ蜀御ク榊酔逧�ァ疲エセ蟾・蜈キ�帶悽蛹�ウィ蜀御ク€谺。 `send_message` 蜥� `interrupt_agent`�悟嘗逕ア `list_agents` 騾夊ソ�黒迢ャ蜉�霓ス逧� `/list-agents` 謠剃サカ謠蝉セ幢シ悟�逶ョ蠖戊。御スソ逕ィ sessionProjections 蜥悟ョ樊慮 Agent 豕ィ蜀瑚。ィ縲�
## `@deepseek-ai/dsh-tool-subagent-report`
### `report`
蜷大星蜉ィ菴�逧� agent 謚・蜻企€牙ョ壼�螳ケ縲ょ惠菴�扈捺據蜑崎ー�畑荳€谺。�檎サ吝�閾ェ蛹�性逧�怙扈育サ捺棡�帛ス楢ソ帛コヲ謌門書邇ー莨壽隼蜿倩ッ・ agent 謗・荳区擂逧�。悟勘譌カ�御ケ溷庄莉・譖エ譌ゥ隹�畑縲りッ・ agent 荳惹ス�蜈ア莠ォ蟾・菴懷玄�御ス�ク堺シ夊�蜉ィ謾カ蛻ー菴�逧� transcript�域枚譛ャ隶ー蠖包シ峨€∝キ・蜈キ霎灘�謌匁耳逅�シ悟屏豁、螳梧�菴�逧�キ・菴懈悽霄ォ蟷カ荳咲ュ我コ惹コ、蜃コ扈捺棡縲よ冠蜻贋ク堺シ夂サ捺據菴�逧�スョ谺。謌門ョ梧�菴�逧�キ・菴懶シ御ク泌宵譛臥峩謗・辷カ郤ァ莨壽噺蛻ー縲ょ、ア雍・逧�ー�畑莉榊庄閭ス蟾イ扈城€∬セセ�悟屏豁、荳崎ヲ∫峇逶ョ驥榊、阪€�
```json
{
"type": "object",
"properties": {
"output": {
"type": "string",
"description": "Actionable content for your parent; summarize conclusions and reference relevant shared paths."
}
},
"required": [
"output"
]
}
```
譚・貅撰シ喙`packages/subagent/tool-subagent-report/src/index.ts`](../packages/subagent/tool-subagent-report/src/index.ts)
謖牙庄扈ァ扈ュ逧�ソ帷ィ句�蟄千コァ豕ィ蜀鯉シ瑚€碁撼蜈ィ螻€豕ィ蜀鯉シ悟屏豁、隸・ schema 莉�惠霑咏ァ榊ュ千コァ蜀�Κ蜿ッ隗�シ悟ケカ荳比ク榊女蜈カ蜈ィ螻€ `toolFilter` 蠖ア蜩阪€ょ酔荳€莉ス雍。迪ョ霑倅シ壼ョ芽」�ュ千コァ菴懃畑蝓溽噪 `tool:report` 邉サ扈滓署遉コ隸� section�梧悽逶ョ蠖穂ク肴クイ譟楢ッ・ section縲る擇蜷醍宛郤ァ逧� `send_message` 蟾・蜈キ蜊慕峡螳芽」�€�
## `@deepseek-ai/dsh-tool-tasks`
### `task_kill`
譬ケ謐ョ task id 隸キ豎ょ叙豸域ュ」蝨ィ霑占。檎噪蜷主床莉サ蜉。縲よュ、隹�畑遶句叉霑泌屓�帑ササ蜉。逧�キ・菴懃悄豁」蛛懈ュ「蜷趣シ御シ壻サ・ killed 迥カ諤∫サ鍋ョ励€�
```json
{
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "Task id returned by the tool that started the background work."
},
"reason": {
"type": "string",
"description": "Optional short reason, recorded in the log and forwarded to the task."
}
},
"required": [
"task_id"
]
}
```
譚・貅撰シ喙`packages/tasks/tool-tasks/src/index.ts`](../packages/tasks/tool-tasks/src/index.ts)
### `task_list`
蛻怜�菴�逧�錘蜿ー莉サ蜉。�亥桁諡ャ豁」蝨ィ霑占。悟柱蟾イ螳梧�逧�ササ蜉。�牙所蜈カ id縲∫ァ咲アサ蜥檎憾諤√€�
```json
{
"type": "object",
"properties": {}
}
```
譚・貅撰シ喙`packages/tasks/tool-tasks/src/index.ts`](../packages/tasks/tool-tasks/src/index.ts)
### `task_output`
隸サ蜿門錘蜿ー莉サ蜉。縲よオ∝シ丈ササ蜉。蜿ェ霑泌屓閾ェ荳頑ャ。隸サ蜿紋サ・譚・逧�セ灘��帶怙扈郁セ灘�莉サ蜉。莨壼惠扈鍋ョ怜錘霑泌屓扈捺棡縲よッ丈クェ蜩榊コ秘�莉・ `[status: ...]` 扈灘ーセ縲りッサ蜿夜サ倩ョ、荳埼仆蝪橸シ幄ョセ鄂ョ `wait: true` 蜷趣シ梧怙髟ソ遲牙セ�芦驟咲スョ逧�ク企剞縲�
```json
{
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "Task id returned by the tool that started the background work."
},
"wait": {
"type": "boolean",
"description": "Block until the task reaches a terminal status or the timeout expires. A timed-out wait returns [status: running] and leaves the task alive."
},
"timeout_ms": {
"type": "number",
"description": "Max wait in milliseconds (only meaningful with wait: true). Defaults to the configured wait timeout; capped by the configured maximum."
}
},
"required": [
"task_id"
]
}
```
譚・貅撰シ喙`packages/tasks/tool-tasks/src/index.ts`](../packages/tasks/tool-tasks/src/index.ts)
荳惹ササ蜉。遘咲アサ譌�蜈ウ逧�錘蜿ー莉サ蜉。謗ァ蛻カ蝎ィ�壼錘蜿ー bash 蜻ス莉、縲 ̄TY 蜿鷹€∝柱 subagent 驛ス騾夊ソ�嶌蜷檎噪 3 荳ェ蟾・蜈キ隸サ蜿悶€∝�蜃コ蜥檎サ域ュ「縲ょ刈霓ス隸・謠剃サカ莨壽撃謗・謗ァ蛻カ蝎ィ�御サ手€悟星逕ィ逕滉コァ譁ケ逧� `ctx.tasks.start()`縲�
## `@deepseek-ai/dsh-tool-todo`
### `todo_write`
隶ー蠖募ケカ譖エ譁ー蠖灘燕蟾・菴懃噪扈捺桷蛹紋ササ蜉。蛻苓。ィ縲よッ乗ャ。隹�畑驛ス隕∝書騾�**螳梧紛蛻苓。ィ**�悟ョ�シ�**譖ソ謐「**荵句燕逧��陦ィ�御ク肴髪謖∝ア€驛ィ譖エ譁ー謌夜€宣。ケ郛冶セ代€りッキ逕ィ螳�ァ��螟壽ュ・鬪、蟾・菴懷ケカ螻慕、コ霑帛コヲ�壼シ€蟋句燕荳コ豈丈クェ蜈キ菴捺ュ・鬪、豺サ蜉�荳€鬘ケ todo縲ょー�ス灘燕豁」蝨ィ螟�炊逧�ッ城。ケ todo 譬�ョー荳コ `in_progress`�帷。ョ螳槫ケカ陦瑚ソ占。梧慮�井セ句ヲょケカ蜿� subagent 謌門錘蜿ー蜻ス莉、�牙庄蜷梧慮譬�ョー螟夐。ケ�碁。コ蠎丞キ・菴懷�譬�ョー 1 鬘ケ縲ょ宵隕∝キ・菴懷ー壽悴螳梧��悟ーア蠎碑�蟆第怏荳€鬘ケ莉サ蜉。荳コ `in_progress`縲よ汾鬘ケ todo 螳梧�蜷守ォ句叉譬�ョー荳コ `completed`�御ク崎ヲ∵音驥乗��ョー螳梧��帛宵譛牙�驛ィ蟾・菴懷ョ梧�蜷趣シ梧燕蜿ッ莉・豐。譛� `in_progress` 鬘ケ縲らョ€蜊慕噪蜊墓ュ・鬪、莉サ蜉。譌�髴€菴ソ逕ィ蛻苓。ィ縲ら憾諤�シ啻pending`�域悴蠑€蟋具シ峨€~in_progress`�域ュ」蝨ィ螟�炊�峨€~completed`�亥キイ螳梧��峨€�
```json
{
"type": "object",
"properties": {
"todos": {
"type": "array",
"description": "The COMPLETE task list, replacing any previous list.",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"content": {
"type": "string",
"description": "What the task is 窶� a short imperative line."
},
"status": {
"type": "string",
"description": "pending (not started) | in_progress (now) | completed (done).",
"enum": [
"pending",
"in_progress",
"completed"
]
}
},
"required": [
"content",
"status"
]
}
}
},
"required": [
"todos"
]
}
```
譚・貅撰シ喙`packages/todo/tool-todo/src/index.ts`](../packages/todo/tool-todo/src/index.ts)
todo_write 譏ッ莨夊ッ晄園譛臥噪迥カ諤�シ婉I 蟆�怙譁ー逧� todo/write 莠倶サカ貂イ譟謎クコ譽€譟・貂�黒縲AallowParallelInProgress` 譏ッ豐。譛蛾サ倩ョ、蛟シ逧�ソ�。ォ鬘ケ�悟屏豁、譛ャ逶ョ蠖墓�遑ョ騾画叫 `true`�悟ッケ蠎疲緒霑ー蜈∬ョク蜷梧慮蟄伜惠螟壻クェ `in_progress` 鬘ケ縲る€画叫 `false` 逧�Κ鄂イ莨夊執蠕怜酔荳€蟾・蜈キ�御ス�緒霑ー莨夊ヲ∵アょ宵閭ス譛� 1 荳ェ豢サ蜉ィ莉サ蜉。縲�
## `@deepseek-ai/dsh-tool-workflow`
### `workflow`
霑占。檎畑莠主、ァ隗�ィ。郛匁賜 subagent 逧� JavaScript 蟾・菴懈オ∬�譛ャ縲ょス灘キ・菴應シ壼�謨」蛻ー隶ク螟夂嶌莠堤峡遶狗噪驛ィ蛻�慮�瑚ッキ菴ソ逕ィ豁、蟾・蜈キ�御セ句ヲょョ。譟・螟ァ驥乗枚莉カ縲∵鴬陦瑚ソ∫ァサ縲∝シ€螻募、夊ァ貞コヲ遐皮ゥカ謌門ッケ蜿醍鴫霑幄。悟ッケ謚怜シ城ェ瑚ッ�シ帶ュ、譌カ蠎泌ー�シ匁賜蜀呎�閼壽悽�瑚€御ク肴弍騾占スョ蟋疲エセ縲�
蟾・菴懈オ∫噪霄ォ莉ス騾夊ソ� `meta` 蜿よ焚莉・ JSON 蠖「蠑丈シ�蜈・�壼ソ�。ォ逧� `name`�育ョ€遏ュ kebab-case�牙柱 `description` 蟄礼ャヲ荳イ�御サ・蜿雁庄騾臥噪 `whenToUse` 蟄礼ャヲ荳イ蜥� `phases` 謨ー扈�シ�{title, detail?, provider?, model?}`�峨€Ascript` 蜿よ焚蜿ェ閭ス譏ッ郤ッ JavaScript **蜃ス謨ー菴�**�御ク崎�譏ッ TypeScript�御ケ滉ク崎�蛹�性 `export const meta` 隸ュ蜿・�嬶eta 譏ッ蜿よ焚閠碁撼莉」遐√€り�譛ャ謾ッ謖�。カ螻� await�幄ッキ莉・ `return <value>` 扈灘ーセ�瑚ッ・蛟シ蠢�。サ蜿ッ莉・ JSON 蠎丞�蛹厄シ悟ケカ菴應クコ豁、蟾・蜈キ逧�サ捺棡縲�
閼壽悽蜃ス謨ー菴捺署萓帑サ・荳矩朝蟄撰シ�
- `agent(prompt, opts?): Promise<any>`�夊ソ占。御ク€荳ェ subagent 逶エ閾ウ螳梧�縲ゆク肴署萓� `opts.schema` 譌カ�瑚ァ」譫蝉クコ蟄千コァ譛€扈域枚譛ャ�帶署萓� `opts.schema` 譌カ�悟ョ�ソ�。サ譏ッ莉・蟇ケ雎。荳コ譬ケ縲∽ク�**蜿ェ閭ス**菴ソ逕ィ type/properties/required/additionalProperties/items/enum/const/oneOf 逧� JSON Schema�御ク肴髪謖� pattern/format/謨ー蛟シ霎ケ逡鯉シ梧ュ、譌カ隗」譫蝉クコ騾夊ソ��。鬪檎噪蟇ケ雎。縲ょュ千コァ螟ア雍・譌カ隗」譫蝉クコ `null`�悟庄菴ソ逕ィ `.filter(Boolean)` 霑�サ、縲ょ�莉夜€蛾。ケ蛹�峡 `label`�域仞遉コ蜷咲ァー�峨€~phase`�郁ソ帛コヲ扈�シ会シ御サ・蜿顔嶌莠堤峡遶狗噪 `provider`�汁model` LLM�亥、ァ隸ュ險€讓。蝙具シ臥岼譬�ヲ�尠鬘ケ�御ク、閠�庄蜊慕峡謠蝉セ帙€ょ�莉紋ササ菴暮€蛾。ケ��effort`�汁isolation`�汁agentType`�蛾�莨壽�遑ョ謚・髞吶€�
- `pipeline(items, ...stages): Promise<any[]>`�夊ョゥ豈丈クェ譚。逶ョ蛻�悪扈剰ソ�推髦カ谿オ�碁亳谿オ荵矩龍**豐。譛�**螻城囿�帛、夐亳谿オ蟾・菴應シ伜�菴ソ逕ィ螳�€よッ丈クェ髦カ谿オ謗・謾カ `(prev, item, index)`縲よ勸騾夂噪髦カ谿オ蠑ょクク莨壼ー�ッ・**譚。逶ョ**蜿倅クコ `null`�悟ケカ霍ウ霑�ョ�噪蜑ゥ菴咎亳谿オ縲�
- `parallel(thunks): Promise<any[]>`�壼ケカ蜿題ソ占。碁峺蜿よ焚蜃ス謨ー蟷カ遲牙セ�**蜈ィ驛ィ**螳梧�縲ょョ�シ壼ス「謌仙ア城囿�御サ�ス捺汾荳ェ髦カ谿オ遑ョ螳樣怙隕∵ア�€サ蜈ィ驛ィ蜈亥燕扈捺棡譌カ菴ソ逕ィ縲よ鴨蜃コ蠑ょクク逧� thunk 隗」譫蝉クコ `null`縲�
- `phase(title)`�壼シ€蟋倶ク€荳ェ霑帛コヲ髦カ谿オ�嫣log(message)`�夊ッエ譏手ソ帛コヲ�嫣args`�壼キ・蜈キ隹�畑逧� `args` 霎灘��悟次譬キ謠蝉セ帙€�
螯よ棡隸ッ逕ィ髓ゥ蟄撰シ亥盾謨ー髞呵ッッ縲∵悴遏・騾蛾。ケ縲∽ク榊女謾ッ謖∫噪 schema縲∬ァヲ蜿台ク企剞�会シ梧鴨蜃コ逧�漠隸ッ**諤サ莨�**扈域ュ「閼壽悽�檎サ昜ク堺シ夐€€蛹紋クコ蜊穂クェ譚。逶ョ逧� `null`縲�
郤ヲ譚滂シ壼ケカ蜿台ク企剞蜥� agent 諤サ謨ー荳企剞蝮�シ夂函謨茨シ帑ク肴署萓帶枚莉カ邉サ扈溘€∫ス醍サ懊€∝ョ壽慮蝎ィ謌� Node.js API縲ょ�菴灘キ・菴懃罰 agent 螳梧��瑚�譛ャ蜿ェ雍溯エ」郛匁賜縲りッ・霑占。悟惠蜑榊床謇ァ陦鯉シ壽紛荳ェ閼壽悽螳梧�蜷趣シ瑚ー�畑謇堺シ夊ソ泌屓縲�
```json
{
"type": "object",
"properties": {
"script": {
"type": "string",
"description": "The plain-JS workflow script body (top-level await allowed; NO `export const meta` statement; end with `return <json-value>`)."
},
"meta": {
"type": "object",
"description": "The workflow identity block (plain JSON 窶� never code).",
"additionalProperties": true,
"properties": {
"name": {
"type": "string",
"description": "Short kebab-case workflow name."
},
"description": {
"type": "string",
"description": "One-line description of what the workflow does."
},
"whenToUse": {
"type": "string",
"description": "Optional guidance on when this workflow applies."
},
"phases": {
"type": "array",
"description": "Optional phase declarations matched by phase() calls.",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"title": {
"type": "string",
"description": "The phase title phase() calls match by exact string."
},
"detail": {
"type": "string",
"description": "Optional one-line description of the phase."
},
"provider": {
"type": "string",
"description": "Optional provider override this phase is expected to use."
},
"model": {
"type": "string",
"description": "Optional model override this phase is expected to use."
}
},
"required": [
"title"
]
}
}
},
"required": [
"name",
"description"
]
},
"args": {
"type": "object",
"description": "Optional JSON input exposed to the script as the `args` global (wrap a bare list as a field, e.g. {\"files\": [...]}).",
"additionalProperties": true
}
},
"required": [
"script",
"meta"
]
}
```
譚・貅撰シ喙`packages/workflow/tool-workflow/src/index.ts`](../packages/workflow/tool-workflow/src/index.ts)
## `@deepseek-ai/dsh-tool-web`
### `web_fetch`
闔キ蜿匁欠螳� HTTP(S) URL 逧��螳ケ�悟ケカ蟆��隗」遐∽クコ譁�悽蜷手ソ泌屓縲�
```json
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The HTTP(S) URL to fetch."
}
},
"required": [
"url"
]
}
```
譚・貅撰シ喙`packages/web/tool-web/src/index.ts`](../packages/web/tool-web/src/index.ts)
### `web_search`
蝨ィ Web 荳頑頗邏「譛€譁ー菫。諱ッ縲りソ泌屓蜿ッ騾臥噪鞫倩ヲ∫ュ疲。亥柱貅� URL 蛻苓。ィ縲�
```json
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The search query."
}
},
"required": [
"query"
]
}
```
譚・貅撰シ喙`packages/web/tool-web/src/index.ts`](../packages/web/tool-web/src/index.ts)
web_search 蜥� web_fetch 蟆�署萓帶婿騾画叫鄂ョ莠� ctx.web 荵句錘�御スソ讓。蝙句庄隗� schema 蝨ィ譖エ謐「蜷守ォッ譌カ菫晄戟遞ウ螳壹€�