Skip to content

Support metadata and output format in custom tools #2718

Closed

Description

@mpazik

Currently, the custom tools can only return a "string," which poses an issue for tools that need to return markdown and extra metadata.

I used a forked version of opencode that had my custom tool support including improved output display for custom tools.
I am happy to submit a PR for this.

Furthermore, I have a command line "tools" command that can list tools and execute them, which is useful when making custom tools and configuring agents. I am happy to add this feature to the project if anyone else would find it useful.

Activity

  1. Peng-YM commented on Sep 23, 2025

    @Peng-YM

    The tool command is super useful for debugging and developing complex custom tools

  2. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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