Sweep 22 Sep 2026 · 15:52Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Reading a new release v2.1.280 Building the pages · 4/6 1043 findings $36.88 so far
One change · claude-code

Agent SDK reference - Python changed

agent-sdk/python

Nearest release: v2.1.273, published 3 hours before 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−7removed
From line 96 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits28to this page, all time

The whole hunk

from line 96, old and new numbered
/
lines
from line 96
9696 
9797#### Parameters
9898 
99| Parameter | Type | Description |
100| :------------- | :---------------------------------------------- | :------------------------------------------------------------------ |
101| `name` | `str` | Unique identifier for the tool |
102| `description` | `str` | Human-readable description of what the tool does |
103| `input_schema` | `type \| dict[str, Any]` | Schema defining the tool's input parameters (see below) |
104| `annotations` | [`ToolAnnotations`](#toolannotations)` \| None` | Optional MCP tool annotations providing behavioral hints to clients |
99| Parameter | Type | Description |
100| :------------- | :---------------------------------------------- | :--------------------------------------------------------------------------------------------- |
101| `name` | `str` | Unique identifier for the tool |
102| `description` | `str` | Human-readable description of what the tool does |
103| `input_schema` | `type \| dict[str, Any]` | Schema defining the tool's input parameters. See [Input schema options](#input-schema-options) |
104| `annotations` | [`ToolAnnotations`](#toolannotations)` \| None` | Optional MCP tool annotations providing behavioral hints to clients |
105105 
106106#### Input schema options
107107 
from line 2370
23702370 
23712371### Hook Usage Example
23722372 
2373This example registers two hooks: one that blocks dangerous bash commands like `rm -rf /`, and another that logs all tool usage for auditing. The security hook only runs on Bash commands (via the `matcher`), while the logging hook runs on all tools.
2373This example registers two hooks: one that blocks dangerous Bash commands like `rm -rf /`, and another that logs all tool usage for auditing. The security hook only runs on Bash commands (via the `matcher`), while the logging hook runs on all tools.
23742374 
23752375```python theme={null}
23762376import asyncio