grok_spawn
Dispatch a bounded asynchronous subagent task to a local Grok instance with explicit readable/writable paths, prohibited actions, and acceptance criteria, then wait for or resume the session.
Instructions
派发给本机 Grok 4.7/high。完全访问权限,必须说明任务边界。允许 Grok 自行使用子代理。
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>",
"scope": "<scope>"
},
"name": "grok_spawn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| model | No | 默认 grok-4.7(普通版);仅明确指定时填写 | |
| scope | Yes | 可读/可改路径、禁止动作、验收要求 | |
| effort | No | 默认 high | |
| prompt | Yes | ||
| wait_s | No | ||
| source_id | No | 可选的来源聊天 ID;Codex 自动取调用元数据,Claude 默认取启动时的会话 ID | |
| session_id | No | 续问已有 Grok 会话;省略则新建 |