Skip to content

excessive sequential tool calls instead of batching #2983

@mcodilla

Description

@mcodilla

Describe the bug

When analyzing a 1.8MB JSON file with over 150 records, Copilot made 7+ separate tool calls across multiple rounds to extract data that could have been gathered in a single Python script

Affected version

No response

Steps to reproduce the behavior

Repro Steps:

  1. Open Copilot CLI and point it at a JSON file
  2. Ask: "Read and parse this file, extract fields a b c d e, and create categories from the data."
  3. Count the number of separate tool calls Copilot makes before it has all the data it needs.

Expected behavior

Copilot should generate a single Python script that parses the JSON, extracts all relevant fields, and outputs a consolidated summary. This should require 1-2 tool calls at most

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsarea:toolsBuilt-in tools: file editing, shell, search, LSP, git, and tool call behavior

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions