continue_task
Resume a prior Grok execution session with a follow-up prompt to fix failing tests. Uses session_id from a previous execute_task or the most recent session in cwd.
Instructions
Continue a previous Grok execution session with a follow-up prompt (e.g. fix failing tests). Prefer session_id from a prior execute_task; otherwise continues the most recent session in cwd.
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>",
"cwd": "<cwd>"
},
"name": "continue_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute path to the target project working directory | |
| model | No | Optional Grok model id (defaults to CLI / MCP_GROK_MODEL) | |
| mutate | No | If true (default), run as execution with --always-approve. If false, continue in review/read-only mode. | |
| prompt | Yes | Task instructions for Grok (be specific about files, tests, constraints) | |
| max_turns | No | Max agentic turns for Grok | |
| background | No | If true, start Grok in background and return job_id immediately | |
| session_id | No | Session UUID returned by a previous execute_task | |
| timeout_sec | No | Timeout in seconds (default 600) |