Skip to content

Structured (JSON) outputsΒ #180

@tinvaan

Description

@tinvaan

Hey, is there a way to get structured outputs from the ClaudeSDKClient. Asking since Claude Code CLI seems to have an --output-format flag which isn't super useful for what I'm looking to do. I'm looking for something that's roughly equivalent to https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview

Is this supported already? If not, are there any possible workarounds using MCP's or SdkMcpTools etc?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions