agent_ex_submit
Dispatches self-contained coding tasks to an external detached worker and immediately returns a task_id without blocking; use continue_of to answer a worker's needs_input question.
Instructions
派发编码任务给外部 worker(detached runner),立即返回 task_id,不阻塞。 prompt 需包含完整上下文、约束与验收标准——worker 不共享当前会话上下文。 任务已提交,卡住/完成会推飞书,无需轮询。 同一 project_path 的写任务并发会互相踩文件——plan 负责串行派发或确保改动文件不重叠;只读分析任务不受此限,可并行。 对 needs_input 任务答疑续跑时传 continue_of=task_id,prompt 填答案,worker 将带着原上下文继续。 切到当前默认档(defaults.profile)以外的计费档 profile 时必须传 allow_metered=true,且只在用户本轮明确指定该 profile 或明确同意付费时传——429、额度上限、超时、失败都不构成同意。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "agent_ex_submit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | 任务工单(首轮)或对 worker 问题的答复(续跑) | |
| profile | No | 运行 profile 名,默认取 config defaults.profile | |
| continue_of | No | 续跑目标任务 id(该任务须为 needs_input) | |
| timeout_sec | No | 每轮超时秒数,默认取 config | |
| project_path | No | 工作目录,默认 MCP server cwd | |
| allow_metered | No | 计费授权:切到当前默认档以外的计费档 profile 时才需要;仅当用户已明确指定该 profile 或同意为这次派发付费时才传 true |