Skip to content

Capture long tool responses in temporary storage and send pointers to the agent #246

@ptelang

Description

@ptelang

If the result of call_tool is a large payload:

  • persist the large payload in temporary storage
  • send a pointer to that payload in the response

Implement a new tool to allow the agent to read portions of the large response dynamically.
read_tool_response(resopnse_pointer, from_pos, to_pos, matching_expr)

This approach is similar in spirit to "Turning long tool responses into files" described in https://cursor.com/blog/dynamic-context-discovery.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions