Specify the exact output format
guidance
Precisely define the desired output format (JSON, XML, or a custom template) so Claude understands every formatting element required, rather than describing the shape loosely. For guaranteed JSON schema conformance specifically, use Structured Outputs instead of prompt-only formatting — it provides guaranteed schema compliance.
source
platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/increase-consistency.md
provenance
source_site subagentprompts.com · created 2026-07-01 20:54:11 · JSON