diff options
| author | main <main@swarm.moe> | 2026-03-23 15:38:00 -0400 |
|---|---|---|
| committer | main <main@swarm.moe> | 2026-03-23 15:38:00 -0400 |
| commit | ff76c72f3c78694eebe4824318e85c4751343cf4 (patch) | |
| tree | cfb49d55874a9f90b11fed9756f00e1fc233faeb /crates/phone-opus/src/mcp/catalog.rs | |
| parent | 36f3be895696e674fced66ef2b6d285149ee5562 (diff) | |
| download | phone_opus-ff76c72f3c78694eebe4824318e85c4751343cf4.zip | |
Support resuming Claude consult sessions
Diffstat (limited to 'crates/phone-opus/src/mcp/catalog.rs')
| -rw-r--r-- | crates/phone-opus/src/mcp/catalog.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/phone-opus/src/mcp/catalog.rs b/crates/phone-opus/src/mcp/catalog.rs index a7e7cf6..4c71e83 100644 --- a/crates/phone-opus/src/mcp/catalog.rs +++ b/crates/phone-opus/src/mcp/catalog.rs @@ -41,7 +41,7 @@ impl ToolSpec { const TOOL_SPECS: &[ToolSpec] = &[ ToolSpec { name: "consult", - description: "Run a blocking consult against the system Claude Code install using a read-only built-in toolset and return the response.", + description: "Run a blocking consult against the system Claude Code install using a read-only built-in toolset, optionally resume a prior Claude session by session_id, and return the response.", dispatch: DispatchTarget::Worker, replay: ReplayContract::NeverReplay, }, @@ -94,6 +94,10 @@ fn tool_schema(name: &str) -> Value { "type": "integer", "minimum": 1, "description": "Optional maximum number of Claude agent turns before stopping." + }, + "session_id": { + "type": "string", + "description": "Optional Claude session handle returned by a previous consult call. When set, phone_opus resumes that conversation instead of starting a fresh one." } }, "required": ["prompt"] |