Provider-hosted tools
For engineers
Web search, code execution and file search tools that the provider runs for you: when to use them, what they cost and what they expose
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A tool call arrives as a tool_use block. Who runs it?
Check yourself · 2 of 5
What does max_uses on a hosted web search tool control?
Check yourself · 3 of 5
In a code execution result block, which field tells you the script failed?
Check yourself · 4 of 5
A search result contains hidden text telling the model to leak data. What is this called?
Check yourself · 5 of 5
A tool must read rows from your private Postgres database. Which kind fits?
Topics
- Client tools versus provider-hosted tools5 min read · Who executes the tool, where its results appear in the response, how it is billed and what data leaves your system
- Grounding answers with hosted web search5 min read · Domain allow and block lists, a cap on searches per request, per-search pricing and the citations in the response
- Running analysis in the provider's code sandbox5 min read · Uploading files to a hosted container, reading its outputs and errors, and its network, time and cost limits
- Injection and data exposure in hosted tools5 min read · Untrusted web pages entering the context, data retention of uploaded files and eligibility for zero data retention
Start here
- Web search tool (Claude docs) (opens in a new tab)DocsFree
Parameters, response blocks, citations and the $10 per 1,000 searches price.
- Code execution tool (Claude docs) (opens in a new tab)DocsFree
Container limits, file upload, result blocks and error codes.
- Server tools (Claude API docs) (opens in a new tab)DocsFree
How server_tool_use blocks, pause_turn and domain filtering work for provider-run tools.
Helps to know first
110 questions · last verified 2026-12