Continue Claude Code session
claude_continueResume a Claude Code thread by passing the same workspace directory, so follow-up prompts retain repo context after restarts for hosts outside Claude Code.
Instructions
Continue the Claude Code session, for hosts other than Claude Code: resumes the
thread rooted at this workspace, so pass the same workspace= as the ask
(without it the sub-agent sees no repo). After a restart it resumes the newest
Claude Code session there. sandbox applies per turn. Autonomous agent: trusted
prompts only.
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": "claude_continue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| watch | No | If true, open the live "watch" view. Default false. | |
| prompt | Yes | Follow-up message. | |
| sandbox | No | Permission policy for THIS turn (default "read-only"). Same values and caveats as claude_ask. | read-only |
| timeout_s | No | Max seconds to wait for claude to complete. Default 180. | |
| workspace | No | Working directory of the prior session. Defaults to the server cwd. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |