96 lines
2.5 KiB
YAML
96 lines
2.5 KiB
YAML
send_message:
|
|
name: Send Message
|
|
description: Send a text message to OpenClaw and get a response.
|
|
fields:
|
|
message:
|
|
name: Message
|
|
description: The message text to send to OpenClaw.
|
|
required: true
|
|
example: "What's the weather like today?"
|
|
selector:
|
|
text:
|
|
multiline: true
|
|
session_id:
|
|
name: Session ID
|
|
description: Optional conversation session ID. Messages with the same session ID share context.
|
|
required: false
|
|
example: "my-automation-session"
|
|
selector:
|
|
text:
|
|
agent_id:
|
|
name: Agent ID
|
|
description: >
|
|
Optional OpenClaw agent ID to route this message to. When omitted,
|
|
the integration routes by the Home Assistant user who called the service.
|
|
required: false
|
|
example: "main"
|
|
selector:
|
|
text:
|
|
|
|
clear_history:
|
|
name: Clear History
|
|
description: Clear scoped conversation history for the current Home Assistant user.
|
|
fields:
|
|
session_id:
|
|
name: Session ID
|
|
description: Session ID to clear. If omitted, clears this user's sessions for the resolved agent.
|
|
required: false
|
|
selector:
|
|
text:
|
|
agent_id:
|
|
name: Agent ID
|
|
description: Optional OpenClaw agent ID override for the history scope.
|
|
required: false
|
|
selector:
|
|
text:
|
|
|
|
invoke_tool:
|
|
name: Invoke Tool
|
|
description: Invoke a single OpenClaw Gateway tool via /tools/invoke.
|
|
fields:
|
|
tool:
|
|
name: Tool
|
|
description: Tool name to invoke.
|
|
required: true
|
|
example: "sessions_list"
|
|
selector:
|
|
text:
|
|
action:
|
|
name: Action
|
|
description: Optional action string passed to the tool endpoint.
|
|
required: false
|
|
example: "json"
|
|
selector:
|
|
text:
|
|
args:
|
|
name: Args
|
|
description: Tool-specific args object.
|
|
required: false
|
|
selector:
|
|
object:
|
|
session_key:
|
|
name: Session Key
|
|
description: Optional target OpenClaw session key.
|
|
required: false
|
|
example: "main"
|
|
selector:
|
|
text:
|
|
dry_run:
|
|
name: Dry Run
|
|
description: Optional dry-run flag (reserved by gateway).
|
|
required: false
|
|
selector:
|
|
boolean:
|
|
message_channel:
|
|
name: Message Channel
|
|
description: Optional channel hint header (e.g. slack, telegram).
|
|
required: false
|
|
selector:
|
|
text:
|
|
account_id:
|
|
name: Account ID
|
|
description: Optional account hint header for multi-account routing.
|
|
required: false
|
|
selector:
|
|
text:
|