batch

[batch]

Runs multiple tool operations in a single request.

Parameters

NameTypeRequiredDescription
operationsjsonYesOperations to run, in order. JSON array of objects like { "tool": "get_type_info", "arguments": { ... } }.
stopOnErrorbooleanNoWhen true, stops after the first failure. Default is false.
timeout_msnumberNoOverall batch timeout in milliseconds. Use 0 to disable. Default is 60000.

Examples

Run multiple operations

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "batch",
    "arguments": {
      "operations": "[\n  { \"tool\": \"get_type_info\", \"arguments\": { \"typeName\": \"SolutionManager\" } },\n  { \"tool\": \"find_usages\", \"arguments\": { \"symbolName\": \"ISolutionManager\", \"summaryOnly\": true } }\n]"
    }
  }
}
Response
{
  "success": true,
  "data": {
    "operationCount": 2,
    "completedCount": 2,
    "failedCount": 0,
    "stoppedEarly": false,
    "results": [
      {
        "tool": "get_type_info",
        "result": {
          "success": true,
          "data": {
            "name": "SolutionManager"
          },
          "error": null
        }
      },
      {
        "tool": "find_usages",
        "result": {
          "success": true,
          "data": {
            "usageCount": 15
          },
          "error": null
        }
      }
    ]
  },
  "error": null
}

Response

Returns per-operation results in order

Go to Playground to test this tool interactively.