教程 / 实战普通
Claude Code Structured Output Mode in 2026: Forcing JSON Responses From Subagents and Validating Them With Zod
内容摘要
Pass outputFormat to subagent sessions, validate structured output with Zod schemas before results reach the lead agent, and compose multi-agent workflows with type-safe JSON pipelines in Claude Code SDK v0.3.301+.