Skip to main content
Glama

Continue Claude Code session

claude_continue

Resume an existing Claude Code thread by sending a follow-up prompt to the same workspace, continuing the newest session there after a restart.

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

NameRequiredDescriptionDefault
watchNoIf true, open the live "watch" view. Default false.
effortNoOptional reasoning effort for this turn, as in claude_ask.
promptYesFollow-up message.
sandboxNoPermission policy for THIS turn (default "read-only"). Same values and caveats as claude_ask.read-only
timeout_sNoMax seconds to wait for claude to complete. Default 180.
workspaceNoWorking directory of the prior session. Defaults to the server cwd.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.38.0
    • addedInput schema / properties / effort
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional reasoning effort for this turn, as in claude_ask."
      +}
  2. Addedv0.37.1

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations cover safety profile (readOnlyHint=false, openWorldHint=true, idempotentHint=false); the description adds genuinely non-structured context: thread-continuity semantics, the no-workspace failure mode, restart behavior, per-turn sandbox application, and a security warning ("Autonomous agent: trusted prompts only"). It does not say what happens if no prior session exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and every clause carries information. Some phrasing is telegraphic ("as the ask", "same values and caveats as claude_ask"), which assumes the reader already knows the sibling, but there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema and fully documented params, the description only needs continuity and scoping semantics, which it supplies. The remaining gap is the no-prior-session error path and whether concurrency on the same workspace is safe.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it explains why workspace must match the prior call and what breaks without it, and clarifies that sandbox is scoped per turn. Other params (watch, effort, timeout_s, prompt) are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Continue the Claude Code session... resumes the thread rooted at this workspace." The phrase "for hosts other than Claude Code" and the contrast with "the ask" signals it is the follow-up counterpart to claude_ask, though it never names that sibling directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete precondition — pass the same workspace=<project dir> as the original ask, otherwise "the sub-agent sees no repo" — and a specific edge case (after a restart it resumes the newest session there). It implies follow-up-after-ask usage rather than stating "use claude_ask to start, this to continue" explicitly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.