claude-reply
Resume a previous Claude Code CLI session by supplying a session ID and a follow-up prompt to continue the conversation from where it left off.
Instructions
Continue a Claude Code CLI conversation by providing the session ID from a previous claude call and a follow-up prompt.
Uses claude --resume <session-id> to load the previous session and continue.
NOTE: Sessions are tied to the directory they were started in (Claude Code issue #5768). The MCP server cannot change the resumed session's working directory โ make sure the host process runs from the original cwd, otherwise the session may not be found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The follow-up prompt to send to Claude | |
| sessionId | Yes | The session ID from a previous claude tool call | |
| model | No | Model id or alias. Do NOT set unless the user explicitly requests one. | |
| effort | No | Reasoning effort. Auto-select based on task complexity. | |
| permissionMode | No | Permission mode. Whether resume honors mid-session changes is experimental โ see plan ยง6.5. | |
| allowedTools | No | Tools Claude may use without permission prompt (e.g. ["Bash(git *)", "Edit"]). | |
| disallowedTools | No | Tools Claude must not use. | |
| appendSystemPrompt | No | Text appended to the default system prompt. | |
| mcpConfig | No | MCP server config files or JSON strings (--mcp-config, repeatable). | |
| maxTurns | No | Limit the number of agentic turns (--max-turns). | |
| forkSession | No | Create a new session ID instead of reusing the original (--fork-session). | |
| bare | No | Run with --bare. Requires ANTHROPIC_API_KEY or apiKeyHelper. | |
| timeout | No | Idle timeout in milliseconds (default: 600000 = 10 min). |