rad_help
Access documentation for Radicle commands to understand usage and options for peer-to-peer code collaboration.
Instructions
Get help for Radicle commands.
Args:
command: Specific command to get help for (optional)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rad_help"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/radicle_mcp/server.py:255-272 (handler)The handler function for the 'rad_help' tool. It runs 'rad --help' or 'rad <command> --help' using the run_rad_command helper and formats the output. The @mcp.tool() decorator registers it as an MCP tool. The function signature and docstring define the input schema.
@mcp.tool() async def rad_help(command: Optional[str] = None) -> str: """ Get help for Radicle commands. Args: command: Specific command to get help for (optional) """ if command: result = await run_rad_command(["rad", command, "--help"]) else: result = await run_rad_command(["rad", "--help"]) if result["success"]: return f"📖 Radicle Help:\n{result['stdout']}" else: return f"❌ Failed to get help: {result['stderr']}"