Skip to content

tool-display-config

Shared configuration that controls how many lines each tool shows during execution and after completion. Truncation position (head or tail) determines whether the first or last N lines are visible. Tools can opt out of truncation entirely.

This is a library extension — other tool extensions (bash-live, read-summary, etc.) import its configuration to ensure consistent display behavior across all tools.

Why it matters: Different tools need different display budgets. A bash command’s last 7 lines are most useful (tail). A file read’s first 7 lines provide orientation (head). Centralizing this prevents each tool from inventing its own truncation rules.