tools changedmanaged-agents/tools
Nearest release: v2.1.318, published 5 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+7added
Lines−20removed
From line
189
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 189, old and new numbered
/
from line 189
189189
190190 ```php PHP
191191 use Anthropic\Beta\Agents\BetaManagedAgentsAgentToolset20260401Params;
192 use Anthropic\Beta\Agents\BetaManagedAgentsModel;
192193 use Anthropic\Beta\Agents\BetaManagedAgentsWebFetchToolConfigParams;
193194
194195 $agent = $client->beta->agents->create(
195196 name: 'Coding Assistant',
196 model: 'claude-opus-5-5',
197 model: BetaManagedAgentsModel::CLAUDE_OPUS_5_5,
197198 tools: [
198199 BetaManagedAgentsAgentToolset20260401Params::with(
199200 configs: [
from line 208
207208 ```ruby Ruby
208209 agent = client.beta.agents.create(
209210 name: "Coding Assistant",
210 model: "claude-opus-5-5",
211 model: Anthropic::Beta::BetaManagedAgentsModel::CLAUDE_OPUS_5_5,
211212 tools: [
212213 {
213214 type: :agent_toolset_20260401,
from line 269
268269
269270Claude does not run a custom tool itself. It emits a structured request, your code runs the operation, and you return the result to the session.
270271
271The following example creates an agent with the built-in toolset and one custom tool, `get_weather`:
272The following example creates an agent with one custom tool, `get_weather`, and no built-in tools:
272273
273274<CodeGroup defaultLanguage="CLI">
274275 ```bash cURL
from line 283
282283 "model": "claude-opus-5-5",
283284 "tools": [
284285 {
285 "type": "agent_toolset_20260401"
286 },
287 {
288286 "type": "custom",
289287 "name": "get_weather",
290288 "description": "Get current weather for a location",
from line 309
311309 name: Weather Agent
312310 model: claude-opus-5-5
313311 tools:
314 - type: agent_toolset_20260401
315312 - type: custom
316313 name: get_weather
317314 description: Get current weather for a location
from line 331
334331 model="claude-opus-5-5",
335332 tools=[
336333 {
337 "type": "agent_toolset_20260401",
338 },
339 {
340334 "type": "custom",
341335 "name": "get_weather",
342336 "description": "Get current weather for a location",
from line 351
357351 name: "Weather Agent",
358352 model: "claude-opus-5-5",
359353 tools: [
360 { type: "agent_toolset_20260401" },
361354 {
362355 type: "custom",
363356 name: "get_weather",
from line 375
382375 Model = BetaManagedAgentsModel.ClaudeOpus5_5,
383376 Tools =
384377 [
385 new BetaManagedAgentsAgentToolset20260401Params(),
386378 new BetaManagedAgentsCustomToolParams
387379 {
388380 Name = "get_weather",
from line 401
409401 ID: anthropic.BetaManagedAgentsModelClaudeOpus5_5,
410402 },
411403 Tools: []anthropic.BetaAgentNewParamsToolUnion{{
412 OfAgentToolset20260401: &anthropic.BetaManagedAgentsAgentToolset20260401Params{},
413 }, {
414404 OfCustom: &anthropic.BetaManagedAgentsCustomToolParams{
415405 Name: "get_weather",
416406 Description: "Get current weather for a location",
from line 428
438428 var agent = client.beta().agents().create(AgentCreateParams.builder()
439429 .name("Weather Agent")
440430 .model(BetaManagedAgentsModel.CLAUDE_OPUS_5_5)
441 .addTool(BetaManagedAgentsAgentToolset20260401Params.builder().build())
442431 .addTool(BetaManagedAgentsCustomToolParams.builder()
443432 .name("get_weather")
444433 .description("Get current weather for a location")
from line 444
455444 ```
456445
457446 ```php PHP
458 use Anthropic\Beta\Agents\BetaManagedAgentsAgentToolset20260401Params;
459447 use Anthropic\Beta\Agents\BetaManagedAgentsCustomToolInputSchema;
460448 use Anthropic\Beta\Agents\BetaManagedAgentsCustomToolParams;
449 use Anthropic\Beta\Agents\BetaManagedAgentsModel;
461450
462451 $agent = $client->beta->agents->create(
463452 name: 'Weather Agent',
464 model: 'claude-opus-5-5',
453 model: BetaManagedAgentsModel::CLAUDE_OPUS_5_5,
465454 tools: [
466 BetaManagedAgentsAgentToolset20260401Params::with(),
467455 BetaManagedAgentsCustomToolParams::with(
468456 name: 'get_weather',
469457 description: 'Get current weather for a location',
from line 467
479467 ```ruby Ruby
480468 agent = client.beta.agents.create(
481469 name: "Weather Agent",
482 model: "claude-opus-5-5",
470 model: Anthropic::Beta::BetaManagedAgentsModel::CLAUDE_OPUS_5_5,
483471 tools: [
484 {type: :agent_toolset_20260401},
485472 {
486473 type: :custom,
487474 name: "get_weather",
No line in this hunk matches that.