Amazon Bedrock が 10 月 20 日に Claude 構造化出力を GA にしたあと、output_config.format と strict ツールで JSON Schema をどう書くか

2026年10月22日時点:runtime と mantle で構造化出力。InvokeModel は output_config.format に json_schema オブジェクト。mantle は strict true。各 object に additionalProperties false。JSON.parse の前に stop_reason。

10 月 20 日、Amazon Bedrock で Claude の構造化出力が GA になり、bedrock-runtime と bedrock-mantle の両方で使えます。テキストは output_config.format の json_schema とネストした schema オブジェクト。mantle ではツールに strict: true。パース前に stop_reason を確認してください。

2026 年 10 月 22 日時点。前日の記事:12 時間キャッシュの usage。スキーマ構造の変更は文法再コンパイル、description だけなら 24 時間キャッシュが残ることが多いです。

10 月 20 日の内容

利用可能な全 Claude モデルで JSON Schema 出力と strict tool use。生成時にトークンを制約します。

InvokeModel

output_config.format に schema オブジェクト。各 object に additionalProperties: false 必須。

strict ツール

tool_use.input を input_schema に厳密一致。テキスト JSON とツール入力は別契約です。

レスポンスから JSON

end_turn で text を parse。max_tokens は不可。JSON 検証。

スキーマ部分集合

Draft 2020-12 の部分集合。再帰・外部 $ref・additionalProperties が false 以外は不可。

24 時間キャッシュ

新 schema の初回はコンパイル遅延。構造は固定し messages で変数を渡す。

FAQ

直接 Claude API と同じ output_config?

パスは同じですが Bedrock は InvokeModel 体と anthropic_version。additionalProperties false は共通。

additionalProperties false は必須?

はい。なければ schema 拒否。

max_tokens で JSON を信頼?

いいえ。max_tokens を増やすか schema を短く。

description 変更で再コンパイル?

通常はいいえ。構造変更ははい。

json_schema と strict の違い?

前者は text JSON、後者は tool_use.input。別バージョン管理。

JSON.parse を全部削除?

いいえ。外側 body と拒否経路は残ります。

まとめ

Bedrock で JSON 契約が正式化。 runtime は output_config、mantle は strict。stop_reason を実データで試験。