Variable: MAX_COST_TOOL_USE_TOKENS
constMAX_COST_TOOL_USE_TOKENS:1024=1024
Defined in: packages/agentos/src/api/runtime/modelPricing.ts:252
Prompt tokens allowed once for a request that sends any tool definition: the tool-use system prompt a provider adds.
Anthropic lists it per model, the largest being 804 tokens (Claude Opus 4.7 with tool_choice any or tool;
https://platform.claude.com/docs/en/about-claude/pricing, "Tool use pricing", read 2026-11-04), which this covers.