You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Execute multiple tools in parallel (or sequentially if dependencies exist, but this implementation runs them sequentially for safety).
29
+
`Execute multiple independent tools sequentially.
30
30
31
-
WHEN TO USE:
32
-
- Calling 2+ different tool types together (e.g., read_file + search_file_content + glob)
33
-
- Performing 3+ independent operations of the same type
34
-
- Gathering information from multiple sources at once
31
+
Use this tool ONLY when you need to perform 5+ truly independent operations that have no sequential dependencies. For most cases, prefer individual tool calls in sequence.
35
32
36
-
WHY USE BATCH:
37
-
- JSON format is simpler and less error-prone than nested XML tool calls
38
-
- Clearly expresses "these operations are a group"
39
-
- Reduces cognitive load when generating multiple tool calls
33
+
AVOID using batch for:
34
+
- Operations with dependencies (one result feeds into another)
35
+
- File edits followed by testing/validation
36
+
- Less than 5 independent operations
37
+
- Different tool types that may need result inspection between calls
40
38
41
-
Example: To read a file, search for a pattern, and list files:
39
+
Example (when appropriate - 5+ independent file reads):
0 commit comments