[PR #8269] fix: add missing metadata() and ask() defintions to ToolContext type #12683

Closed
opened 2026-02-16 18:17:34 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8269

State: closed
Merged: Yes


What does this PR do?

Fixes #8219.

Adds missing metadata() definition to the ToolContext type. I got the definition from packages/opencode/src/tool/tool.ts.

Should other properties like callID and ask() be exposed as well?

How did you verify your code works?

Created a custom tool and didn't get any Typescript errors.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8269 **State:** closed **Merged:** Yes --- ### What does this PR do? Fixes #8219. Adds missing `metadata()` definition to the `ToolContext` type. I got the definition from `packages/opencode/src/tool/tool.ts`. Should other properties like `callID` and `ask()` be exposed as well? ### How did you verify your code works? Created a custom tool and didn't get any Typescript errors.
yindo added the pull-request label 2026-02-16 18:17:34 -05:00
yindo closed this issue 2026-02-16 18:17:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12683