multi-tool-batch-invocation
Installation
SKILL.md
Multi-Tool Parallel Batch Invocation Protocol
Overview
When an agent needs to inspect 4 related files (e.g., schema.prisma, auth.ts, routes.ts, and types.ts), naive agents execute 4 sequential back-and-forth turns:
- Turn 1: Call
view_file("schema.prisma")$\rightarrow$ Wait for response - Turn 2: Call
view_file("auth.ts")$\rightarrow$ Wait for response - Turn 3: Call
view_file("routes.ts")$\rightarrow$ Wait for response - Turn 4: Call
view_file("types.ts")$\rightarrow$ Wait for response
Sequential tool calling re-sends the entire conversation transcript 4 separate times, incurring 4 API roundtrips and 15 to 20 seconds of latency.
The Multi-Tool Batch Invocation Protocol leverages modern function calling specifications to emit multiple tool calls in a single turn (tool_calls: [...]), executing independent operations concurrently via asyncio.gather or Promise.all.