演習 › 全問
問題 Q8-01
96 / 106分野8・ツールの実装
まだ解いていません。
Messages APIで、自作の在庫照会ツールと、Anthropicが用意したWeb検索ツールを両方使う。アプリ側の処理として正しいものはどれか。
正解は B
- A逆です。
- B正解です。クライアント側のツールはアプリで動き、サーバー側のツールはAPIの中で動きます。
- C自作のツールは、アプリが実行します。
- Dサーバー側のツールは、アプリが実行しません。
考え方:どこで動くかで、tool_result の要否が決まる。
出典:Tool use overview
Tools differ primarily by where the code runs.https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview…(取得 2026-11-17)
出典:Server tools
Unlike client `tool_use` blocks, you don’t need to respond with a `tool_result`.https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-t…(取得 2026-11-17)