Tools CLI
CLI commands for tool management in PraisonAI TypeScript
The praisonai-ts CLI provides commands for managing and listing available tools.
Quick Start
- Simple Usage
bash praisonai-ts tools list - With Configuration
bash praisonai-ts chat "Calculate 25*4" --tools calculator
List Available Tools
# List all available tools (pretty output)
praisonai-ts tools
# List tools with JSON output
praisonai-ts tools list --jsonExample 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 calculatorUse 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_searchSDK Usage
For programmatic tool usage, see the Tools SDK documentation.