tools-web-restrictions changedmanaged-agents/tools-web-restrictions
Nearest release: v2.1.304, published under an hour 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+2added
Lines−4removed
From line
23
where the diff opens
First seen
6 Oct 2026
this site's first read of the page
Recorded edits12to this page, all time
The whole hunk
from line 23, old and new numbered
/
from line 23
2323
2424## Set domain lists on an agent
2525
26The following example creates an agent that limits `web_search` to two sites and blocks one host for `web_fetch`. It also sets `user_location` (java, php: `userLocation`; csharp, go: `UserLocation`) and `max_content_tokens` (java, php: `maxContentTokens`; csharp, go: `MaxContentTokens`), which [Settings](https://platform.claude.com/docs/en/managed-agents/tools-web-restrictions#settings) describes. The example then prints the `configs` (csharp, go: `Configs`) array from the response.
26The following example creates an agent that limits `web_search` to two sites and blocks one host for `web_fetch`. It also sets `user_location` (java, php: `userLocation`; csharp, go: `UserLocation`) and `max_content_tokens` (java, php: `maxContentTokens`; csharp, go: `MaxContentTokens`), which [Settings](https://platform.claude.com/docs/en/managed-agents/tools-web-restrictions#settings) describes. The response echoes the `configs` (csharp, go: `Configs`) array.
2727
2828<CodeGroup defaultLanguage="CLI">
2929 ```bash cURL
30 agent=$(curl -fsSL https://api.anthropic.com/v1/agents \
30 curl -fsSL https://api.anthropic.com/v1/agents \
3131 -H "x-api-key: $ANTHROPIC_API_KEY" \
3232 -H "anthropic-version: 2023-06-01" \
3333 -H "anthropic-beta: managed-agents-2026-04-01" \
from line 59
5959 }
6060 ]
6161 }'
62 )
63 jq '.tools[0].configs' <<< "$agent"
6462 ```
6563
6664 <CodeGroupItem>
No line in this hunk matches that.