Skip to content

feat: add tool_use_result field to UserMessage#495

Merged
ashwin-ant merged 1 commit intoanthropics:mainfrom
ronmrdechai:add-tool-use-result-field
Jan 23, 2026
Merged

feat: add tool_use_result field to UserMessage#495
ashwin-ant merged 1 commit intoanthropics:mainfrom
ronmrdechai:add-tool-use-result-field

Conversation

@ronmrdechai
Copy link
Contributor

@ronmrdechai ronmrdechai commented Jan 19, 2026

Summary

Having tool_use_result on UserMessage allows for rich formatting of Claude's built-in tools in programs that use the SDK. Would love to gain access to this.

Parse the tool_use_result field from user messages, which contains
metadata about tool execution results including file edit details
like filePath, oldString, newString, and structuredPatch.
@ashwin-ant ashwin-ant merged commit 773ddfc into anthropics:main Jan 23, 2026
16 checks passed
ashwin-ant added a commit that referenced this pull request Jan 23, 2026
Bump version to 0.1.22 and update changelog with:
- feat: add tool_use_result field to UserMessage (#495)
- fix: add permissions to release job in auto-release workflow (#504)
- chore: bump bundled CLI version to 2.1.19
- chore: extract build-and-publish workflow into reusable component (#488)

Co-Authored-By: Claude <noreply@anthropic.com>
@ashwin-ant ashwin-ant mentioned this pull request Jan 23, 2026
3 tasks
ashwin-ant added a commit that referenced this pull request Jan 23, 2026
## Summary

- Bumps version from 0.1.21 to 0.1.22 in `pyproject.toml` and
`src/claude_agent_sdk/_version.py`
- Updates `CHANGELOG.md` with new entries for features, bug fixes, and
internal changes included in this release

## Test plan

- [ ] Verify version strings are consistent across `pyproject.toml` and
`_version.py`
- [ ] Verify changelog entry is properly formatted and references
correct PRs
- [ ] Confirm package builds successfully with the new version

## Changelog
<!-- CHANGELOG:START -->
Release v0.1.22 with the following changes:
- Added `tool_use_result` field to `UserMessage` (#495)
- Added permissions to release job in auto-release workflow (#504)
- Updated bundled Claude CLI to version 2.1.19
- Extracted build-and-publish workflow into reusable component (#488)
<!-- CHANGELOG:END -->

🤖 Generated with [Claude Code](https://claude.com/claude-code) (100%
11-shotted by claude)

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants