Agent SDK reference - Python changedagent-sdk/python
Nearest release: v2.1.312, published 23 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 28 Oct 2026 18:03 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 28 Oct 2026 18:07 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−0removed
From line
1,270
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits66to this page, all time
The whole hunk
from line 1270, old and new numbered
/
from line 1270
12701270| `updated_input` | `dict[str, Any] \| None` | `None` | Modified input to use instead of original |
12711271| `updated_permissions` | `list[PermissionUpdate] \| None` | `None` | Permission updates to apply |
12721272
1273If you return `PermissionResultAllow` with more than 4,096 items in `updated_permissions`, Claude Code treats the result as invalid and denies the tool call. Each [`PermissionUpdate`](#permissionupdate) counts as one item, and so does each entry in its `rules` or `directories` list. The denial message ends with `updatedPermissions may hold at most 4096 updates, rules and directories in all.` To avoid the denial, return 4,096 items or fewer.
1274
12731275### `PermissionResultDeny`
12741276
12751277Result indicating the tool call should be denied.
No line in this hunk matches that.