tools changedmanaged-agents/tools
Nearest release: v2.1.280, published 20 hours after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+53added
Lines−33removed
From line
35
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits29to this page, all time
The whole hunk
from line 35, old and new numbered
/
from line 35
3535
3636Config entries for `web_search` and `web_fetch` also accept domain filters and other web settings; see [Restrict web search and web fetch domains](https://platform.claude.com/docs/en/managed-agents/tools#restrict-web-search-and-web-fetch-domains).
3737
38<CodeGroup>
38<CodeGroup defaultLanguage="CLI">
3939 ```bash cURL
4040 agent=$(curl -fsSL https://api.anthropic.com/v1/agents \
4141 -H "x-api-key: $ANTHROPIC_API_KEY" \
from line 59
5959 )
6060 ```
6161
62 ```bash CLI
63 ant beta:agents create <<'YAML'
64 name: Coding Assistant
65 model: claude-opus-5
66 tools:
67 - type: agent_toolset_20260401
68 configs:
69 - name: web_fetch
70 enabled: false
71 YAML
72 ```
62 <MultiFileExample language="cli" label="CLI">
63 ```bash CLI
64 ant apply agent.md
65 ```
7366
67 <File filename="agent.md">
68 ```markdown
69 ---
70 name: Coding Assistant
71 model: claude-opus-5
72 tools:
73 - type: agent_toolset_20260401
74 configs:
75 - name: web_fetch
76 enabled: false
77 ---
78 ```
79 </File>
80 </MultiFileExample>
81
7482 ```python Python
7583 agent = client.beta.agents.create(
7684 name="Coding Assistant",
from line 266
258266
259267The following request creates an agent with this toolset and prints the `configs` array from the response:
260268
261<CodeGroup>
269<CodeGroup defaultLanguage="CLI">
262270 ```bash cURL
263271 agent=$(curl -fsSL https://api.anthropic.com/v1/agents \
264272 -H "x-api-key: $ANTHROPIC_API_KEY" \
from line 306
298306 jq '.tools[0].configs' <<< "$agent"
299307 ```
300308
301 ```bash CLI
302 ant beta:agents create --transform tools.0.configs <<'YAML'
303 name: Research Agent
304 model: claude-opus-5
305 tools:
306 - type: agent_toolset_20260401
307 configs:
308 - type: web_search
309 name: web_search
310 allowed_domains: [docs.example.com, arxiv.org]
311 user_location:
312 type: approximate
313 country: US
314 timezone: America/Los_Angeles
315 - type: web_fetch
316 name: web_fetch
317 blocked_domains: [ads.example.com]
318 max_content_tokens: 50000
319 YAML
320 ```
309 <MultiFileExample language="cli" label="CLI">
310 ```bash CLI
311 ant apply agent.md
312 ```
321313
314 <File filename="agent.md">
315 ```markdown
316 ---
317 name: Research Agent
318 model: claude-opus-5
319 tools:
320 - type: agent_toolset_20260401
321 configs:
322 - type: web_search
323 name: web_search
324 allowed_domains: [docs.example.com, arxiv.org]
325 user_location:
326 type: approximate
327 country: US
328 timezone: America/Los_Angeles
329 - type: web_fetch
330 name: web_fetch
331 blocked_domains: [ads.example.com]
332 max_content_tokens: 50000
333 ---
334 ```
335 </File>
336 </MultiFileExample>
337
322338 ```python Python
323339 client = Anthropic()
324340
from line 607
591607 puts JSON.pretty_generate(toolset.configs.map(&:to_h))
592608 end
593609 ```
610
611 <ForLanguage tab="CLI">
612 [`ant apply`](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/apply) creates the agent and prints its ID, not the `configs` array.
613 </ForLanguage>
594614</CodeGroup>
595615
596616In the Claude Console, set allowed or blocked domains from the `web_search` and `web_fetch` rows of the **Built-in tools** card on the agent form; set `max_content_tokens` and `user_location` in the **Raw** view of the agent's configuration.
No line in this hunk matches that.