Logo Moviepilot Api

Moviepilot Api

Cộng đồngPhổ biến
jxxghp
moviepilot-api

Dùng kỹ năng này cho các thao tác trên sản phẩm MoviePilot như tìm kiếm nội dung, tìm kiếm torrent, tải xuống, gói đăng ký, kiểm tra thư viện, trang, lưu trữ, quy trình làm việc, bộ lập lịch, plugin, quy tắc lọc và cài đặt hệ thống. Kỹ năng này chỉ cấp quyền cho cổng moviepilot_api có cấu trúc; không cấp quyền cho HTTP tùy ý, công cụ tác nhân AI cũ, lệnh tương thích MCP, header xác thực hoặc token API.

Add to TypingMind

Tổng quan

Nhà phát hànhjxxghp
Kho mãMoviePilot
Tên kỹ năngmoviepilot-api
Sao
11.8K
Bản fork
1.5K
Tệp đi kèm
21
Giấy phépGPL-3.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 21 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được jxxghp công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Moviepilot Api trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/jxxghp/MoviePilot/tree/v3/skills/moviepilot-api
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Moviepilot Api trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Moviepilot Api ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Moviepilot Api với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Moviepilot Api làm được gì?

Dùng kỹ năng này cho các thao tác trên sản phẩm MoviePilot như tìm kiếm nội dung, tìm kiếm torrent, tải xuống, gói đăng ký, kiểm tra thư viện, trang, lưu trữ, quy trình làm việc, bộ lập lịch, plugin, quy tắc lọc và cài đặt hệ thống. Kỹ năng này chỉ cấp quyền cho cổng moviepilot_api có cấu trúc; không cấp quyền cho HTTP tùy ý, công cụ tác nhân AI cũ, lệnh tương thích MCP, header xác thực hoặc token API.

Vì sao nên dùng Moviepilot Api trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Moviepilot Api là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Moviepilot Api trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/jxxghp/MoviePilot/tree/v3/skills/moviepilot-api. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Moviepilot Api?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Moviepilot Api với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Moviepilot Api với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Moviepilot Api có miễn phí không?

Có. Kỹ năng này được jxxghp phát hành trên GitHub theo giấy phép GPL-3.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇