Skip to content

Tool output truncation references tools that may be disabled #1091

@nosammai

Description

@nosammai

Hi,

I am converting a python app that has a pre-existing suite of custom tools over to using the copilot sdk. I have all of the built-in tools disabled, so it can only use mine. Whenever a tool emits a large response, it gets automatically saved into a tmp file and the AI is given a pointer to that file and references to tools that it doesn't have access to because they are disabled via config. Worse yet, my custom tools sandbox the filesystem reads so it can't even access /tmp to see the file.

Is it possible to either customize that message, or better yet, have more control over the truncation/the ability to disable it entirely?

Result(content='Output too large to read at once (30.8 KB). Saved to: /tmp/1776297019473-copilot-tool-output-2jk2c7.txt\nConsider using tools like grep (for searching), head/tail (for viewing start/end), view with view_range (for specific sections), or jq (for JSON) to examine portions of the output.\n\nPreview (first 500 chars):\n.....

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions