Skip to content

[Feature]: Improve the display format of the /tools list command #9017

@Huaweidev

Description

@Huaweidev

Problem or Use Case

Improve the display format of the /tools list command, the ANSI escape sequences were not properly interpreted, causing control sequences like ?[32m to be displayed directly.

⚙️  /tools list
Built-in toolsets (cli):
  ?[32m✓ enabled?[0m  web  ?[2m🔍 Web Search & Scraping?[0m
  ?[32m✓ enabled?[0m  browser  ?[2m🌐 Browser Automation?[0m
  ?[32m✓ enabled?[0m  terminal  ?[2m💻 Terminal & Processes?[0m
  ?[32m✓ enabled?[0m  file  ?[2m📁 File Operations?[0m
  ?[32m✓ enabled?[0m  code_execution  ?[2m⚡ Code Execution?[0m
  ?[32m✓ enabled?[0m  vision  ?[2m👁️  Vision / Image Analysis?[0m
  ?[32m✓ enabled?[0m  image_gen  ?[2m🎨 Image Generation?[0m
  ?[31m✗ disabled?[0m  moa  ?[2m🧠 Mixture of Agents?[0m
  ?[32m✓ enabled?[0m  tts  ?[2m🔊 Text-to-Speech?[0m
  ?[32m✓ enabled?[0m  skills  ?[2m📚 Skills?[0m
  ?[32m✓ enabled?[0m  todo  ?[2m📋 Task Planning?[0m
  ?[32m✓ enabled?[0m  memory  ?[2m💾 Memory?[0m
  ?[32m✓ enabled?[0m  session_search  ?[2m🔎 Session Search?[0m
  ?[32m✓ enabled?[0m  clarify  ?[2m❓ Clarifying Questions?[0m
  ?[32m✓ enabled?[0m  delegation  ?[2m👥 Task Delegation?[0m
  ?[32m✓ enabled?[0m  cronjob  ?[2m⏰ Cron Jobs?[0m
  ?[31m✗ disabled?[0m  rl  ?[2m🧪 RL Training?[0m
  ?[32m✓ enabled?[0m  homeassistant  ?[2m🏠 Home Assistant?[0m

Edition: Debian GNU/Linux 13 (trixie)
XFCE version: 4.20.1 (Xfce 4.20)

Proposed Solution

Optimized Display:

✓ enabled   web             🔍 Web Search & Scraping
✓ enabled   browser         🌐 Browser Automation
✓ enabled   terminal        💻 Terminal & Processes
✓ enabled   file            📁 File Operations
✓ enabled   code_execution  ⚡ Code Execution
✓ enabled   vision          👁️  Vision / Image Analysis
✓ enabled   image_gen       🎨 Image Generation
✗ disabled  moa             🧠 Mixture of Agents
✓ enabled   tts             🔊 Text-to-Speech
✓ enabled   skills          📚 Skills
✓ enabled   todo            📋 Task Planning
✓ enabled   memory          💾 Memory
✓ enabled   session_search  🔎 Session Search
✓ enabled   clarify         ❓ Clarifying Questions
✓ enabled   delegation      👥 Task Delegation
✓ enabled   cronjob         ⏰ Cron Jobs
✗ disabled  rl              🧪 RL Training
✓ enabled   homeassistant   🏠 Home Assistant

Alternatives Considered

No response

Feature Type

CLI improvement

Scope

Small (single file, < 50 lines)

Contribution

  • I'd like to implement this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions