Skip to content

[BUG] System prompt's read_file tool failing for reading multiple files. #8858

@Zabalero

Description

@Zabalero

Problem (one or two sentences)

The read_file tool documentation states that it can read "Max 15 files per request" and provides an example using the format:

<read_file>
<args>
	<file>
	  <path>path/to/file1.py</path>
	</file>
	<file>
	  <path>path/to/file2.txt</path>
	</file>
</args>
</read_file>

However, when attempting to use this format, the tool consistently fails with the error: "Missing value for required parameter 'path'".

Image

Context (who is affected and when)

read_file tool usage for reading multiple files.

Reproduction steps

  1. Try to read multiple files using the documented format with and nested elements
  2. The tool returns an XML parsing error instead of reading the files
    Expected behavior:

Expected result

The tool should read all specified files and return their contents, as documented.

Actual result

The tool fails with "Missing value for required parameter 'path'" error, indicating the XML parser doesn't recognize the documented structure.

Variations tried (optional)

The tool works correctly for single file reads using:

<read_file>
<file>
<path>path/to/file.txt</path>
</file>
</read_file>

App Version

3.29.1

API Provider (optional)

None

Model Used (optional)

ROO CODE - grok-code-fast-1

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions