cc_batch
Run multiple ComputerCraft peripheral calls in one request, executed concurrently by default so N reads complete in a single game tick. Each call returns its own result or error independently.
Instructions
Run many peripheral calls in one request. calls = [{"peripheral": "ship_...", "method": "getSpeed",
"args": []}, ...]. With parallel=True (default) they run concurrently, so N reads cost one game tick instead
of N (use for sensor sweeps and control-loop style reads/writes). Each call reports its own result or error.
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": {
"calls": "<calls>"
},
"name": "cc_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes | ||
| timeout | No | ||
| computer | No | ||
| parallel | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |