Skip to main content

Tools CLI Commands

The praisonai-ts CLI provides commands for managing and listing available tools.

List Available Tools

# List all available tools (pretty output)
praisonai-ts tools

# List tools with JSON output
praisonai-ts tools list --json
Example Output:
{
  "success": true,
  "data": {
    "tools": [
      { "name": "arxiv_search", "description": "Search arXiv for academic papers" },
      { "name": "web_search", "description": "Search the web for information" },
      { "name": "calculator", "description": "Perform mathematical calculations" },
      { "name": "code_executor", "description": "Execute code snippets" },
      { "name": "file_reader", "description": "Read file contents" },
      { "name": "file_writer", "description": "Write content to files" }
    ],
    "count": 6
  }
}

Get Tool Information

# Get info about a specific tool
praisonai-ts tools info calculator

Use Tools with Chat

# Chat with tools enabled
praisonai-ts chat "Calculate 25 * 4" --tools calculator

# Use multiple tools
praisonai-ts chat "Search for AI papers" --tools arxiv_search,web_search

SDK Usage

For programmatic tool usage, see the Tools SDK documentation.