Skip to content

feat(plugin): add tool result content API#34709

Open
kitlangton wants to merge 4 commits into
v2from
tool-result-api
Open

feat(plugin): add tool result content API#34709
kitlangton wants to merge 4 commits into
v2from
tool-result-api

Conversation

@kitlangton

@kitlangton kitlangton commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add branded Tool.result({ output, content }) plus context.progress({ output, content }) to V2 plugin tools
  • wire tool progress through the registry into replayable session tool progress events
  • migrate built-in tools to explicit output/content results and keep bulky text out of structured output where possible

Stack

Testing

  • bun typecheck (packages/plugin)
  • bun typecheck (packages/core)
  • bun typecheck (packages/server)
  • bun typecheck (packages/sdk-next)
  • bun run test -- test/session-runner-tool-registry.test.ts test/session-runner.test.ts test/session-tool-progress.test.ts test/tool-shell.test.ts test/tool-subagent.test.ts test/tool-skill.test.ts test/tool-webfetch.test.ts test/tool-websearch.test.ts (packages/core)
  • bunx prettier --write touched files
  • bunx oxlint touched files (warnings only; no errors)
  • pre-push bun turbo typecheck

Local note

  • packages/sdk-next: bun run test -- embedded.test.ts still fails one local live-notification test due configured provider auth/timeout; the embedded tool fixture test passes

Base automatically changed from tool-package-boundary to v2 July 1, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant