run_python_batch
Execute multiple independent Python snippets concurrently with parallel workers, ideal for batch file processing and data analysis tasks that don't require shared state.
Instructions
Execute multiple Python snippets in parallel (max 4 workers, max 20 snippets). Use for independent tasks: file processing, parallel data analysis. Use run_python for stateful/dependent operations. See README.md for examples.
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": {
"codes": "<codes>"
},
"name": "run_python_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| codes | Yes | ||
| timeout | No | ||
| max_workers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |