execute
Run async Python snippets that await local tools.* operations, batching many file or command actions into one call and returning results.
Instructions
Run an async Python snippet that can await tools.* to batch many local operations in one call.
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": {
"code": "<code>"
},
"name": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Async Python body. await tools.read_file({'Path': '/abs'}) and return a value. | |
| yield_time_ms | No | How long to wait before returning an execution_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |