Skip to content

A Command to List Tools #1142

Closed
Closed

Description

@ecyht2

I think it would be nice to have a command to list and manage the tools currently available. This way the user can toggle tools for that specific session or see what tools are currently available.

It would also be nice to have documentation on what tools are enabled by default.

Activity

  1. assigned and unassigned on Jul 20, 2025
  2. AdiY00 commented on Aug 12, 2025

    @AdiY00
    Contributor

    I agree.

    It's nice that we can configure that in config.json, but I feel like being able to change it for the session from the tui (like it is with models and themes) would be amazing. Same with MCP tools.

    could be a pretty simple menu for now, but it would be awesome if we would have a nice dashboard for it after moving to opentui.

  3. 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!

  4. zhoukekestar commented on Feb 21, 2026

    @zhoukekestar

    I found a way to list all tools by create a tools.md file with content as fellow:

    ---
    description: list all tools
    ---
    
    
    1. run shell
    
    ```sh
    curl -q "http://localhost:$(lsof -i -sTCP:LISTEN | grep -E "^opencode" | grep -oE ':[0-9]+' | tr -d ':')/experimental/tool/ids"
    ```
    
    2. show the results as markwodn table
    

    Then you can list tools by /tools

    More details can be found here

    Here is my logs

    # Running shell to fetch experimental tool IDs and display as Markdown table
    
    **Session ID:** ses_37fce37dbffeXTpxh73zN5t5QH
    **Created:** 2/21/2026, 8:34:32 PM
    **Updated:** 2/21/2026, 8:34:45 PM
    
    ---
    
    ## User
    
    1. run shell
    
    ```sh
    curl -q "http://localhost:$(lsof -i -sTCP:LISTEN | grep -E "^opencode" | grep -oE ':[0-9]+' | tr -d ':')/experimental/tool/ids"
    ```
    
    2. show the results as markwodn table
    
    ---
    
    ## Assistant (Build · big-pickle · 8.6s)
    
    _Thinking:_
    
    The user wants me to run a shell command that:
    1. Finds the port that opencode is listening on using lsof
    2. Makes a curl request to that port at /experimental/tool/ids
    3. Then display the results as a markdown table
    
    Let me run this command.
    
    **Tool: bash**
    
    **Input:**
    ```json
    {
      "command": "curl -q \"http://localhost:$(lsof -i -sTCP:LISTEN | grep -E \"^opencode\" | grep -oE ':[0-9]+' | tr -d ':')/experimental/tool/ids\"",
      "description": "Get tool IDs from opencode server"
    }
    ```
    
    **Output:**
    ```
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    100   193  100   193    0     0   124k      0 --:--:-- --:--:-- --:--:--  188k
    ["invalid","question","bash","read","glob","grep","edit","write","task","webfetch","todowrite","websearch","codesearch","skill","apply_patch","github-triage","github-pr-search","google_search"]
    ```
    
    ---
    
    ## Assistant (Build · big-pickle · 5.1s)
    
    _Thinking:_
    
    The user wants me to display the results as a markdown table. The results are:
    ["invalid","question","bash","read","glob","grep","edit","write","task","webfetch","todowrite","websearch","codesearch","skill","apply_patch","github-triage","github-pr-search","google_search"]
    
    Let me format this as a markdown table.
    
    | # | Tool ID |
    |---|---------|
    | 1 | invalid |
    | 2 | question |
    | 3 | bash |
    | 4 | read |
    | 5 | glob |
    | 6 | grep |
    | 7 | edit |
    | 8 | write |
    | 9 | task |
    | 10 | webfetch |
    | 11 | todowrite |
    | 12 | websearch |
    | 13 | codesearch |
    | 14 | skill |
    | 15 | apply_patch |
    | 16 | github-triage |
    | 17 | github-pr-search |
    | 18 | google_search |
    
    ---
    
  5. adrianlzt commented on Mar 31, 2026

    @adrianlzt
  6. viktorashi commented on Jul 6, 2026

    @viktorashi

    https://www.npmjs.com/package/@adrianlzt/opencode-show-tools

    HOW HAS NOONE SEEN THEN BY NOW

    Pls make this first-class with a TUI modal. I can't reopen the issue

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