Variables

SCHEMA_TOOL_NAME

Variable: SCHEMA_TOOL_NAME

const SCHEMA_TOOL_NAME: "respond_with_schema" = 'respond_with_schema'

Defined in: src/core/agent/outputEnforcement.ts:197

Name of the tool the schema is presented as.

It is the STRATEGY's mechanism, never the agent's surface: it is built at request-assembly time, so it cannot reach .tools(), the tools slot, the tools.offered event, an MCP server's served list, or the dispatcher that runs tools and files middleware rows. The only places it exists are the wire and the llm_start event — and it belongs in that event, whose whole claim is that it reports what the model actually saw.

On this page