tools-cascade.md: use actual call_tool JSON schema in examples

This commit is contained in:
Levi Neely 2026-05-17 13:42:38 +02:00
parent 1c578191fa
commit 03bb4fa6dc
1 changed files with 12 additions and 5 deletions

View File

@ -8,14 +8,21 @@ Delegate mechanical subtasks to a cheaper/weaker model. Fire-and-forget: returns
**Calling convention**:
```
call_tool: cascade instruction="<fully self-contained task description>" [id="<optional-name>"]
call_tool: calls=[{tool: "cascade", args: ["<fully self-contained task description>"]}]
```
Parallel — issue multiple calls in the same step; they execute concurrently:
With explicit id:
```
call_tool: cascade instruction="Read /src/a.go and list all exported functions"
call_tool: cascade instruction="Read /src/b.go and list all exported functions"
call_tool: cascade instruction="Read /src/c.go and list all exported functions"
call_tool: calls=[{tool: "cascade", args: ["<instruction>", "<id>"]}]
```
Parallel — consecutive cascade calls fan out automatically (annotation-based):
```
call_tool: calls=[
{tool: "cascade", args: ["Read /src/a.go and list all exported functions"]},
{tool: "cascade", args: ["Read /src/b.go and list all exported functions"]},
{tool: "cascade", args: ["Read /src/c.go and list all exported functions"]}
]
```
**Returns** (KV, one per line):