openclaw_tools_invoke
Invoke any allowed tool on an OpenClaw instance. Provide instance IP, auth token, and tool name to get the tool's result.
Instructions
Invoke a single tool on an OpenClaw instance via the Tools Invoke API. Returns the tool's result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_ip | Yes | IP address or hostname of the OpenClaw instance (e.g., 167.71.242.214). Do not include https:// prefix. | |
| auth_token | Yes | Bearer token for authenticating with the OpenClaw Gateway. | |
| tool | Yes | Name of the tool to invoke (e.g., sessions_list, web_search). Must be allowed by the Gateway's tool policy. | |
| action | No | Optional action parameter. Mapped into args if the tool schema supports an 'action' field (e.g., 'json', 'text'). | |
| args_json | No | Optional JSON object of tool-specific arguments. Example: {"query": "OpenClaw docs", "limit": 5} | |
| session_key | No | Target session key. Defaults to 'main'. Controls which agent session the tool runs in. | main |
| dry_run | No | Reserved for future use. Currently ignored by the API. | |
| message_channel | No | Optional channel hint for group policy resolution (e.g., 'slack', 'telegram'). | |
| account_id | No | Optional account ID for multi-account setups. | |
| timeout | No | Request timeout in seconds. Default: 60. | 60 |
| output_variable_name | Yes | Variable name for the result. Access tool output with {{tool_result.result}}. Check {{tool_result.ok}} for success. | tool_result |