Run a structured JSON-contract task on a swarm backend
swarm_run_structuredExecute bounded JSON Schema tasks with optional domain rules on auto, CodeBuddy, or ZCode backends; set waitSec to wait for inline schema validation.
Instructions
Execute a bounded JSON Schema + optional domainRule task on 'auto' (default), 'codebuddy', or 'zcode'. CLI backends default to zero-tool 'lite' profile; set waitSec > 0 to wait and validate inline.
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": {
"task": "<task>",
"input": "<input>",
"schema": "<schema>"
},
"name": "swarm_run_structured"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| task | Yes | ||
| input | Yes | ||
| model | No | ||
| schema | Yes | ||
| backend | No | ||
| profile | No | ||
| waitSec | No | ||
| provider | No | ||
| ephemeral | No | ||
| domainRule | No | ||
| fallbackModel | No |