mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
refactor(agent): rename run_plugin_command to run_slash_command to avoid confusion with execute_command (shell)
This commit is contained in:
@@ -7,7 +7,7 @@ description: >-
|
||||
(e.g. "sync sites", "show subscriptions", "refresh subscriptions", "check downloads", etc.).
|
||||
This skill helps you identify the user's intent, find the matching command, extract necessary parameters,
|
||||
and execute the corresponding command.
|
||||
allowed-tools: list_all_commands query_plugin_capabilities run_plugin_command
|
||||
allowed-tools: list_all_commands query_plugin_capabilities run_slash_command
|
||||
---
|
||||
|
||||
# Command Execute
|
||||
@@ -31,7 +31,7 @@ Use this skill to identify user intent and invoke the corresponding system or pl
|
||||
|
||||
- `list_all_commands` — List all available commands (system + plugin), returns command name, description, and category
|
||||
- `query_plugin_capabilities` — Query detailed plugin capabilities (commands, actions, scheduled services)
|
||||
- `run_plugin_command` — Execute a specified command (works for both system and plugin commands)
|
||||
- `run_slash_command` — Execute a specified command (works for both system and plugin commands)
|
||||
|
||||
## Workflow
|
||||
|
||||
@@ -59,7 +59,7 @@ Some commands support additional arguments (space-separated after the command),
|
||||
- `/redo <history_id>` — Manually re-organize a specific record
|
||||
- `/subscribe_delete <name>` — Delete a specific subscription
|
||||
|
||||
Use `run_plugin_command` to execute the command in the format `/command_name arg1 arg2`.
|
||||
Use `run_slash_command` to execute the command in the format `/command_name arg1 arg2`.
|
||||
|
||||
### Step 4: Report Result
|
||||
|
||||
@@ -68,6 +68,6 @@ Command execution is asynchronous. After triggering, inform the user that the co
|
||||
## Important Notes
|
||||
|
||||
- Command execution requires admin privileges; the tool will automatically check permissions
|
||||
- Both system and plugin commands are executed via the `run_plugin_command` tool — no need to distinguish between them
|
||||
- Both system and plugin commands are executed via the `run_slash_command` tool — no need to distinguish between them
|
||||
- If you are unsure which command matches the user's intent, use `list_all_commands` first to look up before deciding
|
||||
- Never guess non-existent commands; always select from the available command list
|
||||
|
||||
Reference in New Issue
Block a user