{
  "id": "ao-tool-result-truncation-table",
  "kind": "table",
  "slug": "ao-tool-result-truncation",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/ao-tool-result-truncation/",
  "title": "Tool-result size caps in Gemini CLI and OpenCode",
  "columns": [
    "product",
    "setting",
    "meaning",
    "documented_value"
  ],
  "rows": [
    {
      "product": "Gemini CLI",
      "setting": "tools.truncateToolOutputThreshold",
      "meaning": "Maximum characters to show when truncating large tool outputs. Set to 0 or a negative value to disable truncation.",
      "documented_value": "40000 (documented default)"
    },
    {
      "product": "OpenCode",
      "setting": "tool_output.max_lines",
      "meaning": "Maximum number of lines retained from a tool result, shown in the config example.",
      "documented_value": "2000 (value in the documented example)"
    },
    {
      "product": "OpenCode",
      "setting": "tool_output.max_bytes",
      "meaning": "Maximum number of bytes retained from a tool result, shown in the config example.",
      "documented_value": "51200 (value in the documented example)"
    }
  ],
  "related_slugs": [
    "ao-subagent-delegation",
    "ao-mcp-pagination"
  ],
  "license": "CC-BY-4.0",
  "source_license": "Apache-2.0 (google-gemini/gemini-cli (GitHub)); MIT (anomalyco/opencode (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-16",
  "status": "week-draft-20261116",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}
