Skip to content

docs(tools): document automatic tool output truncation#13119

Closed
webwww123 wants to merge 1 commit into
anomalyco:devfrom
webwww123:docs-tool-output-truncation-4826
Closed

docs(tools): document automatic tool output truncation#13119
webwww123 wants to merge 1 commit into
anomalyco:devfrom
webwww123:docs-tool-output-truncation-4826

Conversation

@webwww123
Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes #4826.

Adds a dedicated section to tools docs explaining automatic tool-output truncation:

  • large outputs are truncated before being fed back into context
  • full output is persisted under ~/.local/share/opencode/tool-output/
  • agents are guided to use grep/read with offset/limit on the saved file

Also clarifies there is no stable user-facing threshold tuning config today.

How did you verify your code works?

  • Cross-checked behavior against current truncation implementation and tool output handling in the codebase.
  • Validation will run in GitHub Actions CI.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found related PRs about tool output handling and truncation, but no direct duplicates of PR #13119 (the current PR):

Related PRs (not duplicates):

These are implementation-focused PRs that address the technical aspects of tool output truncation, whereas PR #13119 is specifically about documenting this feature. They are complementary but not duplicates.

No duplicate PRs found

@github-actions
Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Question] Is automatic tool calling output truncation supported?

1 participant