register_cli_tool
Register any CLI command as an AI-accessible tool with optional persona configuration.
Instructions
Dynamically register a CLI tool as an MCP tool. The tool must be available in PATH.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "register_cli_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | Optional alias for the tool (defaults to 'ask-{command}') | |
| command | Yes | The CLI command to register (e.g., 'ollama', 'git') | |
| persist | No | Whether to save to ai-tools.json (default: false) | |
| description | No | Custom description for the tool | |
| systemPrompt | No | System prompt for AI agent persona configuration |