GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ToolContext type missing metadata() method that exists at runtime · Issue #8219 · anomalyco/opencode

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

New issue
Copy link
New issue
Copy link
Closed
#8269
Closed
ToolContext type missing metadata() method that exists at runtime#8219
#8269
Copy link
Assignees
thdxr

Description

@eXamadeus
eXamadeus
opened on Jan 13, 2026
Issue body actions

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.

Activity

  1. github-actions commented on Jan 13, 2026

    @github-actions
    github-actionsBot
    on Jan 13, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • The new custom tool ToolContext doesn't expose project, directory, and worktree as the docs example #2683: The new custom tool ToolContext doesn't expose project, directory, and worktree as the docs example (similar issue about ToolContext type definition missing properties/methods that exist at runtime)

    Feel free to ignore if this doesn't address your specific case.

  2. github-actions
    assigned
    thdxr
    on Jan 13, 2026
  3. rekram1-node
    closed this as completedin #8269on Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.