You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/web/src/content/docs/config.mdx
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -361,32 +361,26 @@ You can control when tool output is truncated using the `tool_output` option. Wh
361
361
{
362
362
"$schema": "https://opencode.ai/config.json",
363
363
"tool_output": {
364
-
"truncate": true,
365
364
"max_lines": 2000,
366
365
"max_bytes": 51200
367
366
}
368
367
}
369
368
```
370
369
371
-
-`truncate` - Truncate tool output when it exceeds a configured threshold (default: `true`).
372
370
-`max_lines` - Maximum number of lines before output is truncated (default: `2000`).
373
371
-`max_bytes` - Maximum size in bytes before output is truncated (default: `51200`).
374
372
375
373
These thresholds apply to output handled by OpenCode's shared truncation layer, including MCP and plugin tool output. Individual tools that page or cap their own results can have separate limits.
376
374
377
-
To disable shared tool output truncation, set `truncate` to `false`:
375
+
To disable shared tool output truncation, set `tool_output` to `false`:
378
376
379
377
```json title="opencode.json"
380
378
{
381
379
"$schema": "https://opencode.ai/config.json",
382
-
"tool_output": {
383
-
"truncate": false
384
-
}
380
+
"tool_output": false
385
381
}
386
382
```
387
383
388
-
`truncate: false` cannot be combined with `max_lines` or `max_bytes`; thresholds only apply when truncation is enabled.
0 commit comments