Moviepilot Api 标志

Moviepilot Api

社区热门
jxxghp
moviepilot-api

将此技能用于 MoviePilot 产品操作,例如媒体搜索、种子搜索、下载、订阅、媒体库检查、站点、存储、工作流、计划任务、插件、过滤规则和系统设置。此技能仅授权使用结构化的 moviepilot_api 网关,不授权任意 HTTP 请求、旧版智能体工具、MCP 兼容命令、身份验证标头或 API Token。

Add to TypingMind

概览

发布者jxxghp
代码仓库MoviePilot
技能名称moviepilot-api
星标数
11.8K
复刻数
1.5K
附带文件
21
许可协议GPL-3.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 21 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 jxxghp 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Moviepilot Api AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/jxxghp/MoviePilot/tree/v3/skills/moviepilot-api
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jxxghp/MoviePilot.git /tmp/MoviePilot
mkdir -p .claude/skills
cp -r /tmp/MoviePilot/skills/moviepilot-api .claude/skills/moviepilot-api
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Moviepilot Api,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Moviepilot Api。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Moviepilot Api 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

MoviePilot API

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.

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.

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.
  5. Obtain confirmation for confirmation-protected or side-effecting operations, then execute the gateway call once.
  6. Inspect success, execution_outcome, errors, empty results, and collection metadata before reporting or taking a dependent action.
  7. Verify writes with the category's read-back operation when the contract requires it; do not repeat a write whose outcome is unknown.

API Category Index

Each category file contains the complete operation contracts for its namespace. The counts are a maintenance aid for the 220 currently exposed operations.

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

json
{
  "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.

Operation Order And Failure Handling

  1. Select the operation first, then place each value in its documented bucket. Never move query fields into path_params or send undeclared fields.
  2. Reuse the exact media_source + media_id pair returned by search. For music, also preserve music_type.
  3. Downloads, transfers, configuration/rule/plugin writes, scheduler/workflow runs, and deletions have side effects; obtain confirmation and inspect the result.
  4. success=false, HTTP errors, validation errors, and empty results are real outcomes. Never report them as success.
  5. Use database-operation, downloader-operation, or mediaserver-operation for their native capabilities. Never bypass the gateway with an arbitrary URL.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Moviepilot Api AI 技能有什么作用?

将此技能用于 MoviePilot 产品操作,例如媒体搜索、种子搜索、下载、订阅、媒体库检查、站点、存储、工作流、计划任务、插件、过滤规则和系统设置。此技能仅授权使用结构化的 moviepilot_api 网关,不授权任意 HTTP 请求、旧版智能体工具、MCP 兼容命令、身份验证标头或 API Token。

为什么在 TypingMind 中使用 Moviepilot Api?

因为您只需安装一次,就能搭配任何模型使用。Moviepilot Api 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Moviepilot Api?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/jxxghp/MoviePilot/tree/v3/skills/moviepilot-api。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Moviepilot Api?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Moviepilot Api 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Moviepilot Api 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Moviepilot Api AI 技能免费吗?

是的。jxxghp 已在 GitHub 上根据 GPL-3.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇