Surface Tools
Why It Matters
The model catalog, connector catalog, agent index, and tool schemas can be large. Dumping them into every prompt wastes tokens and makes tool selection worse. Lazy discovery keeps the prompt stable and asks the owning service for ranked candidates.Tool Result Budgets
Tool results are compacted before returning to the model. Defaults live inharness/tools/index.ts:
Large JSON results are shortened with explicit
__compose_truncated metadata so the model knows the result was compacted.