Skip to content

ToolContext type missing metadata() method that exists at runtime #8219

@eXamadeus

Description

@eXamadeus

Summary

The ToolContext type is missing the metadata() method in its type definition, but the method does appear to exist at runtime.

Expected Behavior

The ToolContext type should include the metadata() method signature so TypeScript is aware of it.

Actual Behavior

TypeScript does not recognize metadata() as a valid method on ToolContext, but calling it at runtime works.

Impact

This causes type errors when trying to use metadata() in TypeScript code, requiring workarounds like type assertions.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions