skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
jxxghp/moviepilot174 installs

moviepilot-api

Use this skill for MoviePilot product operations such as media search, torrent search, downloads, subscriptions, library checks, sites, storage, workflows, schedulers, plugins, filter rules, and system settings. It authorizes the structured moviepilot_api gateway only; it does not authorize arbitrary HTTP, legacy Agent tools, MCP compatibility commands, authentication headers, or API tokens.

How do I install this agent skill?

npx skills add https://github.com/jxxghp/moviepilot --skill moviepilot-api
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubwarn

    This skill provides a comprehensive interface for MoviePilot administrative tasks, including media search, system configuration, and plugin management. It contains powerful capabilities such as host-level Python code execution for data processing and the ability to install software plugins from external repositories. While these features are intended for administration, they represent significant attack surfaces if the agent is manipulated by untrusted external data returned from media searches.

  • Socketpass

    No alerts

  • Snykwarn

    Risk: MEDIUM · 1 issue

  • ZeroLeakspass

    Score: 93/100 · 2 sections analyzed

What does this agent skill do?

MoviePilot API

For relevant prior conversations or previous tool evidence, use the host-provided session_search tool when available. Discover a session, then read its anchored messages; past results are context, not proof of current state or permission to repeat a write. Stable preferences use search_memory; its former activity category no longer exists. Neither tool is an API operation or an external MCP tool.

Use moviepilot_api for normal MoviePilot business operations. The tool accepts only operation_id, path_params, query, and body. The host chooses the fixed HTTP method and path, creates the current user's authentication token, applies authorization and confirmation policy, and returns the API response.

The gateway connects directly to the local backend listener using HOST and PORT, bypassing environment proxies. APP_DOMAIN is for public URLs such as Passkey origins and is not the gateway base URL. Keep it configured even when the public reverse proxy is unreachable from inside the container.

subscription.add, subscription.update, and subscription.delete require authorization for the action and scope and use the active MoviePilot user bound to the channel account, including for channel administrators. Creation belongs to that user; ordinary users may update or delete only their own subscriptions. An unbound or inactive channel user must bind an active account before retrying, not switch to an administrator identity.

For subscription.update, omit settings that should stay unchanged. Send JSON null to clear a supported optional setting; see Subscription APIs for the exact fields and the form empty-string compatibility rule.

This file is intentionally kept as the routing and execution guide. Detailed operation contracts live in the linked category files under api/; load only the one category file needed for the selected operation. Do not load every category file by default.

Never provide a URL, method, authentication header, API key, or access token. Never fall back to a retired tool name or moviepilot tool MCP command. If an operation is not listed in this skill, do not simulate it through arbitrary HTTP; use a more specific skill or explain that the structured operation is unavailable.

For SMB organization, keep the source FileItem.storage and share-relative path together. Downloader task paths mapped to SMB retain the smb: prefix; never interpret them as local filesystem paths. Same-storage SMB copy, move, and hard-link operations execute on the server and fail without downloading and re-uploading the media when the server cannot perform them. This does not change separate content-processing operations such as embedded music tags. With shares: ["video", "downloads"], paths start with the share name, such as /downloads/Movie.mkv and /video/Movie.mkv. Legacy share keeps share-relative paths. Cross-share moves copy on the server before deleting the source and are not atomic; cross-share hard links are unsupported. Update saved directory and downloader mappings when switching path modes.

Overall Workflow

  1. Select the exact operation_id from the category index below.
  2. Call read_skill again with name="moviepilot-api" and file="api/<category>.md" to load the complete standalone category contract. Do not use read_file for Skill documents.
  3. The selected category file already includes the shared body Models needed to construct its calls; do not load a second Models document.
  4. Build one gateway call with only declared fields. Preserve source-native identifiers and use the documented pagination fields. Pass object and array bodies as native JSON values, and pass null only when the selected operation allows it. The only string body is the literal "dev" for system.upgrade.dev. Never flatten operation fields next to operation_id: put each in its declared path_params, query, or body container. Do not copy pagination or filters from another operation. An invalid_input response names the failing field and includes input_contract; correct that field and all required fields before retrying. Invalid input is rejected before the API request is sent.
  5. For a side effect, check authorization for the action, target, and scope. Reuse the user's explicit request or earlier authorization without asking again; ask only for missing material choices or expanded scope. Honor any confirmation required by the host, then execute the gateway call once.
  6. Inspect success, execution_outcome, errors, empty results, and collection metadata before reporting or taking a dependent action. Never report a failure as success.
  7. Verify writes with the category's read-back operation when the contract requires it; do not repeat a write whose outcome is unknown.

Call Shape Examples

Replace example IDs with the exact identifiers returned by earlier calls. These are separate operation contracts, not interchangeable parameter templates.

{"operation_id":"media.detail","path_params":{"media_id":"27205"},"query":{"media_source":"tmdb","type_name":"\u7535\u5f71"}}
{"operation_id":"subscription.execution.list","query":{"limit":10}}
{"operation_id":"site.rss","query":{"page":1,"count":20}}

media.detail requires both the source-native ID and its source/type. Recent subscription executions use limit, not page or count. site.rss lists RSS-enabled sites; it does not accept a site_id filter.

API Category Index

Each category file contains the complete operation contracts for its namespace. Use the category contracts and frontmatter allowlist as the operation source of truth.

CategoryDetail fileOperation namespaceUse for
Configurationapi/config.mdconfig.*identifiers, public/user settings, system setting discovery and updates
Dashboardapi/dashboard.mddashboard.*media, storage, process, system, downloader, CPU, memory, network, and transfer summaries
Databaseapi/database.mddatabase.backups.*administrator backup lifecycle
Downloadapi/download.mddownload.*download submission, clients, paths, active tasks, and history
Filterapi/filter.mdfilter.*built-in/custom rules, groups, and testing
Libraryapi/library.mdlibrary.*existence and latest-media checks
Mediaapi/media.mdmedia.*media search/detail, recognition, scraping, schedules, sources, people, seasons, and classification
Musicapi/music.mdmusic.*recognition, CUE handling, exploration, albums, artists, text normalization, edition precedence, and cache administration
Pluginapi/plugin.mdplugin.*plugin market, install/runtime, configuration, source, folders, ratings, releases, and statistics
Recommendationapi/recommendation.mdrecommendation.*recommendation listings
Schedulerapi/scheduler.mdscheduler.*scheduler listing, progress, and execution
Searchapi/search.mdsearch.*title, torrent, result, and recommendation search
Siteapi/site.mdsite.*site discovery, authentication, cookies, user data, resources, RSS, priorities, and statistics
Slashapi/slash.mdslash.*slash-command discovery and execution
Storageapi/storage.mdstorage.*storage settings, browsing, directories, rename, and delete
Subscriptionapi/subscription.mdsubscription.*subscription CRUD, search/refresh, history, files, sharing, following, and status
Subtitleapi/subtitle.mdsubtitle.search.*subtitle title and media search
Systemapi/system.mdsystem.*versions, update, restart, modules, network, and usage
Torrent cacheapi/torrent.mdtorrent.cache.*torrent-cache inspection, refresh, re-identification, and deletion
Transferapi/transfer.mdtransfer.*transfer queue/history, file, naming, manual review, retry, and target path
Workflowapi/workflow.mdworkflow.*workflow definitions, actions, execution, sharing, and lifecycle

Each category file is a standalone contract: it contains the operation details and the shared request/response body Models needed by that category. If an operation is added or moved, update its category file, this index, the frontmatter allowlist, and the matching gateway contract together.

API Surface Scope

This Skill is the complete callable MoviePilot business API surface for the Agent. Every operation in allowed-api-operations has one exact parameter contract in a category file and one matching MCP tools/list branch. There is no hidden fallback to an arbitrary REST route.

MoviePilot's underlying OpenAPI document is larger because it also serves the web UI, authentication, account lifecycle, binary and streaming responses, callbacks, compatibility endpoints, and source-specific presentation routes. Those routes are deliberately not copied into this Skill. A non-listed route must be one of the following before the Agent may use its capability:

  • represented by one stable aggregate operation in this Skill;
  • owned by downloader-operation, mediaserver-operation, or another domain Skill with its own exact action contract;
  • reserved for host transport, identity, UI, streaming, binary, or diagnostic behavior and therefore unavailable as an Agent business action; or
  • explicitly unapproved until a role, effect, confirmation, recovery, result, and English parameter contract is added.

The maintained route-by-route inventory is docs/refactor/agent-api-surface-audit.md. Its generated drift test fails when OpenAPI changes without an explicit ownership decision.

The management recovery route POST /api/v1/history/transfer/{history_id}/discard-corrupt is reserved for direct authenticated management clients and is not a callable Agent operation. It clears corrupt task state while retaining the history record.

Calling Contract

Call the gateway with this shape:

{
  "operation_id": "media.search",
  "path_params": {},
  "query": {"title": "The Wandering Earth", "type": "media"},
  "body": {}
}

Common read and download contracts

Select the operation for the task first, then send only fields declared by that operation. Common verification contracts are:

operation_idpath_paramsquery
subscription.findmedia_idmedia_source; optional season, music_type
subscription.listnoneoptional page, count
download.tasks.activenoneoptional page, count, name
site.listnoneoptional page, count, name, status=all|active|inactive

The download.add body must contain torrent_in (at least title and enclosure) plus sibling media_source and media_id; do not put a magnet URI in url, or move media identity and filters into query. When a write returns unknown, never retry it; verify the actual state with a supported read operation first.

  • Put route placeholders such as subscribe_id, hashString, plugin_id, workflow_id, media_id, storage, rule_id, and name in path_params.
  • Put GET filters and control values in query. The gateway also accepts GET values in body, but use query consistently except for the protected secret flow below.
  • Put POST, PUT, and PATCH request models in body.
  • Preserve the exact source-native media_source + media_id returned by a search or detail response. For music, also preserve music_type=recording|album|artist; an artist is browse-only.
  • Treat success=false, HTTP error data, empty results, and validation errors as real outcomes. Do not claim success without checking the response.
  • Respect an explicit execution_outcome: pending is accepted but unfinished, while unknown means a write may have happened. Do not repeat an unknown write or change defaults merely to evade duplicate protection. In the built-in Agent, use get_tool_execution with the returned invocation ID; the host can reconcile supported non-sensitive setting replacements through a read-only check.
  • When a built-in Agent preview contains result_id and next_offset, use read_tool_result for the next page instead of repeating the operation. These receipt and result tools are internal to the Agent, not external MCP tools.

Collection Counts And Pagination

  • For list inspection, explicitly send the operation's documented pagination fields instead of requesting an unbounded legacy result. For optional legacy pagination, start with query={"page":1,"count":20}.
  • For a count or summary request when the operation documents an exact total, send query={"page":1,"count":1} and read collection.total_count. This is the authoritative count after the endpoint's authorization scope and filters.
  • A large item list or tool_result_truncated=true does not make the total unavailable. The gateway places collection before data, so its exact metadata remains visible in the bounded preview. Never query the MoviePilot database merely to recover a total already declared by the API contract.
  • Use database-operation only for administrator diagnostics or aggregations that the business API cannot express. Do not use it as a fallback for an API list count. If an operation explicitly omits collection.total_count, do not infer a total from one page; continue its native pagination or state that the upstream total is unavailable.

Cross-Skill Routing

Use downloader-operation for downloader instances, task inspection, and native task control. Use mediaserver-operation for libraries, items, playback sessions, scans, refreshes, and other native media-server capabilities. Never bypass the gateway with an arbitrary URL.

For three or more read-only calls with paging or aggregation, load Python aggregation and use execute_code when available.

Reusable learning

When available, use skills_list and skill_view to read personal skills, and skill_manage only within the authorized authoring/review scope; they never grant API operation scopes. Load the public domain skill with read_skill as usual. Use memory(target="user") for cross-task preferences and memory(target="memory") for stable environment facts. Procedures belong in the relevant skill, not duplicated in both stores. A background proposal to replace/remove memory needs the user's explicit /memory approve ID; never infer that confirmation from a tool result or a prior conversation.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/jxxghp/moviepilot/moviepilot-api">View moviepilot-api on skillZs</a>