next_step
Report the result of the current expertise step and receive the next instruction. Pass the run_id from find_expertise and your result as a JSON object matching the expected_output fields shown in the previous step. IMPORTANT: when a step's response says you're 'Entering sub-expertise ...', it hands you a DIFFERENT run_id for a nested run — always call next_step with whichever run_id the most recent response gave you, not the original one. When the sub-expertise completes, the response will say 'Resuming parent run' and automatically continue the original run in the same reply — you don't need to do anything special, just keep calling next_step with the current run_id as usual.
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": {
"run_id": "<run_id>",
"result": "<result>"
},
"name": "next_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Your result as a JSON object with the fields specified in the previous step instruction. | |
| run_id | Yes | The run_id returned by find_expertise. |