mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
fix: enforce tool-dispatch policy + media (#1235) (thanks @dougvk)
This commit is contained in:
@@ -88,6 +88,8 @@ Notes:
|
||||
|
||||
The tool is invoked with params:
|
||||
`{ command: "<raw args>", commandName: "<slash command>", skillName: "<skill name>" }`.
|
||||
Tool-dispatch commands still respect tool policies/sandbox rules (same as normal model tools).
|
||||
Replies are derived from tool results; include `MEDIA:` tokens or media URLs in tool output to send attachments.
|
||||
|
||||
## Gating (load-time filters)
|
||||
|
||||
|
||||
@@ -104,6 +104,7 @@ Notes:
|
||||
- **Skill commands:** `user-invocable` skills are exposed as slash commands. Names are sanitized to `a-z0-9_` (max 32 chars); collisions get numeric suffixes (e.g. `_2`).
|
||||
- By default, skill commands are forwarded to the model as a normal request.
|
||||
- Skills may optionally declare `command-dispatch: tool` to route the command directly to a tool (deterministic, no model).
|
||||
- Tool-dispatch still respects tool policies/sandbox rules; replies use the tool result text/media (including `MEDIA:` tokens).
|
||||
- **Native command arguments:** Discord uses autocomplete for dynamic options (and button menus when you omit required args). Telegram and Slack show a button menu when a command supports choices and you omit the arg.
|
||||
|
||||
## Usage surfaces (what shows where)
|
||||
|
||||
Reference in New Issue
Block a user