Answer: Set `outputSchema` when MCP clients need a structured result contract, using a Zod schema or plain JSON Schema. Agent SDK advertises the schema and does not validate results against it. Status: Confirmed Entry: tool/cursor/agents-and-automation/declare-structured-output Revision: 1 Digest: sha256:c756c883a0153235 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:09:05Z Last changed: 2026-11-13T03:09:05Z Last verified: 2026-11-20T12:34:17Z Next check: 2026-11-21T12:34:17Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of property | outputSchema | [1] | 2026-11-20 schema types | Zod schema or plain JSON Schema | [1] | 2026-11-20 validation behavior | does not validate results against it | [1] | 2026-11-20 plain object behavior | structuredContent | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/reference/tools.md". https://cursor.com/docs/agent-sdk/reference/tools.md Role: primary. Accessed: 2026-11-20T12:34:17Z Quote: "Set `outputSchema` when MCP clients need a structured result contract." (Supports: property) Quote: "Use a Zod schema or plain JSON Schema:" (Supports: schema types) Quote: "Agent SDK advertises the schema and does not validate results against it." (Supports: validation behavior) Quote: "A plain object fills MCP `structuredContent`." (Supports: plain object behavior) Snapshot SHA-256: 478596a021cb5a0713ad781c7e9ed2aab5f83d2769eb6e2f6bb795941c038cfb (captured 2026-11-13T03:09:05Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:09:05Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:34:17Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:34:17Z Last attempt: 2026-11-20T12:34:17Z Notes and limitations: Extracted automatically from a single official source (section "Declare structured output"). Related: https://latestn.com/tool/cursor/agents-and-automation/define-custom-channel How do I define a custom channel in Cursor's Agent SDK? https://latestn.com/tool/cursor/agents-and-automation/define-server-tool How do I define a server tool in the Cursor Agent SDK? https://latestn.com/tool/cursor/agents-and-automation/deploy-agent-sdk-from-git How do I deploy an Agent SDK project from Git with Cursor? https://latestn.com/tool/cursor/agents-and-automation/custom-modes-skill How do I use a skill as a Custom Mode in Cursor so it stays active across turns? https://latestn.com/tool/cursor/agents-and-automation/customize-approval-rules How do I customize approval rules for PR Routing & Approval in Cursor? https://latestn.com/tool/cursor/agents-and-automation/declare-artifact-kinds How do I declare artifact kinds in the Cursor Agent SDK? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:09:05Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/agents-and-automation/declare-structured-output/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/agents-and-automation/declare-structured-output POST: https://latestn.com/dispute/tool/cursor/agents-and-automation/declare-structured-output with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/agents-and-automation/declare-structured-output?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I declare structured output for a Cursor Agent SDK tool? Revision 1, last verified 2026-11-20T12:34:17Z. https://latestn.com/tool/cursor/agents-and-automation/declare-structured-output (accessed 2026-11-21T10:01:38Z). @misc{LatestN_tool_cursor_agents_and_automation_declare_structured_output_r1, title = {How do I declare structured output for a Cursor Agent SDK tool?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/agents-and-automation/declare-structured-output}}, note = {Revision 1; digest sha256:c756c883a0153235; last verified 2026-11-20T12:34:17Z; accessed 2026-11-21T10:01:38Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/agents-and-automation/declare-structured-output