Invoke a single tool on an OpenClaw instance via the Tools Invoke API. Returns the tool’s result.
Bearer token from your account (https://agent.ai/user/integrations#api)
IP address or hostname of the OpenClaw instance (e.g., 167.71.242.214). Do not include https:// prefix.
Bearer token for authenticating with the OpenClaw Gateway.
Name of the tool to invoke (e.g., sessions_list, web_search). Must be allowed by the Gateway's tool policy.
Variable name for the result. Access tool output with {{tool_result.result}}. Check {{tool_result.ok}} for success.
^[a-zA-Z][a-zA-Z0-9_]*$Optional action parameter. Mapped into args if the tool schema supports an 'action' field (e.g., 'json', 'text').
Optional JSON object of tool-specific arguments. Example: {"query": "OpenClaw docs", "limit": 5}
Target session key. Defaults to 'main'. Controls which agent session the tool runs in.
Reserved for future use. Currently ignored by the API.
Optional channel hint for group policy resolution (e.g., 'slack', 'telegram').
Optional account ID for multi-account setups.
Request timeout in seconds. Default: 60.