mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
Add autonomous Agent task scheduling
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: moviepilot-cli
|
||||
version: 3
|
||||
version: 4
|
||||
description: >-
|
||||
Use this skill when the user asks to operate MoviePilot through the local
|
||||
`moviepilot tool` MCP CLI for normal product workflows: media search, torrent
|
||||
@@ -58,7 +58,7 @@ Always run `show <command>` before calling a command — parameter names are not
|
||||
| Library | query_library_exists, query_library_latest, transfer_file, scrape_metadata, query_transfer_history |
|
||||
| Files | list_directory, query_directory_settings |
|
||||
| Sites | query_sites, query_site_userdata, test_site, update_site, update_site_cookie |
|
||||
| System | query_schedulers, run_scheduler, query_workflows, run_workflow, query_rule_groups, query_episode_schedule, send_message |
|
||||
| System | query_schedulers, run_scheduler, create_agent_task, query_agent_tasks, update_agent_task, delete_agent_task, query_workflows, run_workflow, query_rule_groups, query_episode_schedule, send_message |
|
||||
|
||||
## Workflows
|
||||
|
||||
@@ -186,6 +186,32 @@ Trigger a search for missing episodes (confirm with user first):
|
||||
Remove a subscription (confirm with user first):
|
||||
`moviepilot tool run delete_subscribe subscribe_id=123`
|
||||
|
||||
### Manage Autonomous Agent Tasks
|
||||
|
||||
Use autonomous tasks only when the user explicitly requests delayed, recurring,
|
||||
reminder, or monitoring behavior. Immediate work should run directly. Use the
|
||||
MoviePilot `TZ` setting for local times.
|
||||
|
||||
For a relative one-time request, use `date` with `delay_minutes`; MoviePilot
|
||||
calculates and persists the exact run time:
|
||||
`moviepilot tool run create_agent_task name="检查电影资源" content="搜索电影《示例电影》是否有资源并报告,不要自动下载。" trigger_type=date delay_minutes=30`
|
||||
|
||||
For a one-time task at a fixed time, use `date` with an ISO 8601 `trigger`:
|
||||
`moviepilot tool run create_agent_task name="今晚检查资源" content="检查目标电影是否有资源并报告。" trigger_type=date trigger="2026-07-19 20:30:00"`
|
||||
|
||||
For recurring work, use a standard five-field cron expression. This example
|
||||
runs every day at 20:30:
|
||||
`moviepilot tool run create_agent_task name="每日资源检查" content="检查目标电影是否有资源并报告。" trigger_type=cron trigger="30 20 * * *"`
|
||||
|
||||
List tasks and inspect `next_run_at` and the latest result:
|
||||
`moviepilot tool run query_agent_tasks`
|
||||
|
||||
Pause or resume a task:
|
||||
`moviepilot tool run update_agent_task task_id=1 enabled=false`
|
||||
|
||||
Delete a task only after confirming permanent removal with the user:
|
||||
`moviepilot tool run delete_agent_task task_id=1`
|
||||
|
||||
### Check Library and Subscriptions
|
||||
|
||||
Run before any download or subscription to avoid duplicates.
|
||||
|
||||
Reference in New Issue
Block a user