seafile_libraries
Manage self-hosted Seafile libraries: list, create, inspect, update, or delete libraries, plus configure tokens, webhooks, and settings, with dry-run previews for writes.
Instructions
seafile_libraries covers the libraries toolset (39 route operations). Auth header Authorization Token. Self-hosted Seafile only. seafile.com hosts are refused. Writes, including side-effect GETs, need confirm true and SEAFILE_ALLOW_WRITES=true. Omit confirm for a dry-run preview of method, path, and redacted body. Delete, purge, expire, revert, trash clean, move, copy, and overwrite previews name the library id and path. Actions: create_monitored_repos: POST /api/v2.1/monitored-repos/. POST /api/v2.1/monitored-repos/ (MonitoredRepos). Body and query are free-form. create_repo: POST /api2/repos/. Create a library. Form body field name is required. Encrypted libraries need passwd. The sync token in the response is redacted. create_repos_repo_api_tokens: POST /api/v2.1/repos/{repo_id}/repo-api-tokens/. Create a library API token. Credential-minting. Library tokens cannot delete, move, or copy. Warning: destructive, exposure, or credential change. create_repos_webhooks: POST /api/v2.1/repos/{repo_id}/webhooks/. POST /api/v2.1/repos/{repo_id}/webhooks/ (WebhooksView). Path params: repo_id. Body and query are free-form. delete_monitored_repos: DELETE /api/v2.1/monitored-repos/{repo_id}/. DELETE /api/v2.1/monitored-repos/{repo_id}/ (MonitoredRepo). Path params: repo_id. Body and query are free-form. Warning: destructive, exposure, or credential change. delete_repo: DELETE /api2/repos/{repo_id}/. Delete a library. Destructive. The preview names repo_id. Warning: destructive, exposure, or credential change. delete_repos: DELETE /api/v2.1/repos/{repo_id}/. DELETE /api/v2.1/repos/{repo_id}/ (RepoView). Path params: repo_id. Body and query are free-form. Warning: destructive, exposure, or credential change. delete_repos_repo_api_tokens: DELETE /api/v2.1/repos/{repo_id}/repo-api-tokens/{app_name}/. DELETE /api/v2.1/repos/{repo_id}/repo-api-tokens/{app_name}/ (RepoAPITokenView). Path params: repo_id, app_name. Body and query are free-form. Warning: destructive, exposure, or credential change. delete_repos_webhooks: DELETE /api/v2.1/repos/{repo_id}/webhooks/. DELETE /api/v2.1/repos/{repo_id}/webhooks/ (WebhooksView). Path params: repo_id. Body and query are free-form. Warning: destructive, exposure, or credential change. delete_repos_webhooks_repo_id_webhook_id: DELETE /api/v2.1/repos/{repo_id}/webhooks/{webhook_id}/. DELETE /api/v2.1/repos/{repo_id}/webhooks/{webhook_id}/ (WebhooksView). Path params: repo_id, webhook_id. Body and query are free-form. Warning: destructive, exposure, or credential change. get_default_repo: GET /api2/default-repo/. GET /api2/default-repo/ (DefaultRepoView). Body and query are free-form. get_repo: GET /api2/repos/{repo_id}/. Read one library. get_repos: GET /api/v2.1/repos/{repo_id}/. GET /api/v2.1/repos/{repo_id}/ (RepoView). Path params: repo_id. Body and query are free-form. get_repos_auto_delete: GET /api/v2.1/repos/{repo_id}/auto-delete/. GET /api/v2.1/repos/{repo_id}/auto-delete/ (RepoAutoDeleteView). Path params: repo_id. Body and query are free-form. get_repos_download_info: GET /api2/repos/{repo_id}/download-info/. GET /api2/repos/{repo_id}/download-info/ (DownloadRepo). Path params: repo_id. Body and query are free-form. get_repos_history_limit: GET /api2/repos/{repo_id}/history-limit/. GET /api2/repos/{repo_id}/history-limit/ (RepoHistoryLimit). Path params: repo_id. Body and query are free-form. get_repos_owner: GET /api2/repos/{repo_id}/owner/. GET /api2/repos/{repo_id}/owner/ (RepoOwner). Path params: repo_id. Body and query are free-form. get_repos_public: GET /api2/repos/public/. GET /api2/repos/public/ (PubRepos). Body and query are free-form. get_repos_webhooks: GET /api/v2.1/repos/{repo_id}/webhooks/{webhook_id}/. GET /api/v2.1/repos/{repo_id}/webhooks/{webhook_id}/ (WebhooksView). Path params: repo_id, webhook_id. Body and query are free-form. list_repo_tokens: GET /api2/repo-tokens/. GET /api2/repo-tokens/ (RepoTokensView). Body and query are free-form. Warning: destructive, exposure, or credential change. list_repos: GET /api2/repos/. List libraries visible to the token. list_repos_get: GET /api/v2.1/repos/. GET /api/v2.1/repos/ (ReposView). Body and query are free-form. list_repos_repo_api_tokens: GET /api/v2.1/repos/{repo_id}/repo-api-tokens/. List library API tokens. Token values are redacted. list_repos_webhooks: GET /api/v2.1/repos/{repo_id}/webhooks/. GET /api/v2.1/repos/{repo_id}/webhooks/ (WebhooksView). Path params: repo_id. Body and query are free-form. post_default_repo: POST /api2/default-repo/. POST /api2/default-repo/ (DefaultRepoView). Body and query are free-form. post_repo: POST /api2/repos/{repo_id}/. Library password or rename. Query op is rename, setpassword, or checkpassword. Form fields repo_name and repo_desc for rename. post_repos_archive: POST /api/v2.1/repos/{repo_id}/archive/. POST /api/v2.1/repos/{repo_id}/archive/ (RepoArchiveView). Path params: repo_id. Body and query are free-form. post_repos_batch: POST /api/v2.1/repos/batch/. POST /api/v2.1/repos/batch/ (ReposBatchView). Body and query are free-form. post_repos_public: POST /api2/repos/public/. POST /api2/repos/public/ (PubRepos). Body and query are free-form. Warning: destructive, exposure, or credential change. post_repos_send_new_password: POST /api/v2.1/repos/{repo_id}/send-new-password/. POST /api/v2.1/repos/{repo_id}/send-new-password/ (RepoSendNewPassword). Path params: repo_id. Body and query are free-form. Warning: destructive, exposure, or credential change. post_repos_set_password: POST /api/v2.1/repos/{repo_id}/set-password/. POST /api/v2.1/repos/{repo_id}/set-password/ (RepoSetPassword). Path params: repo_id. Body and query are free-form. Warning: destructive, exposure, or credential change. post_repos_webhooks: POST /api/v2.1/repos/{repo_id}/webhooks/{webhook_id}/. POST /api/v2.1/repos/{repo_id}/webhooks/{webhook_id}/ (WebhooksView). Path params: repo_id, webhook_id. Body and query are free-form. update_repos_auto_delete: PUT /api/v2.1/repos/{repo_id}/auto-delete/. PUT /api/v2.1/repos/{repo_id}/auto-delete/ (RepoAutoDeleteView). Path params: repo_id. Body and query are free-form. update_repos_history_limit: PUT /api2/repos/{repo_id}/history-limit/. PUT /api2/repos/{repo_id}/history-limit/ (RepoHistoryLimit). Path params: repo_id. Body and query are free-form. update_repos_owner: PUT /api2/repos/{repo_id}/owner/. PUT /api2/repos/{repo_id}/owner/ (RepoOwner). Path params: repo_id. Body and query are free-form. update_repos_repo_api_tokens: PUT /api/v2.1/repos/{repo_id}/repo-api-tokens/{app_name}/. PUT /api/v2.1/repos/{repo_id}/repo-api-tokens/{app_name}/ (RepoAPITokenView). Path params: repo_id, app_name. Body and query are free-form. Warning: destructive, exposure, or credential change. update_repos_set_password: PUT /api/v2.1/repos/{repo_id}/set-password/. PUT /api/v2.1/repos/{repo_id}/set-password/ (RepoSetPassword). Path params: repo_id. Body and query are free-form. Warning: destructive, exposure, or credential change. update_repos_webhooks: PUT /api/v2.1/repos/{repo_id}/webhooks/. PUT /api/v2.1/repos/{repo_id}/webhooks/ (WebhooksView). Path params: repo_id. Body and query are free-form. update_repos_webhooks_repo_id_webhook_id: PUT /api/v2.1/repos/{repo_id}/webhooks/{webhook_id}/. PUT /api/v2.1/repos/{repo_id}/webhooks/{webhook_id}/ (WebhooksView). Path params: repo_id, webhook_id. Body and query are free-form.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "seafile_libraries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Free-form JSON or form body. /api2 routes are sent as form fields. /api/v2.1 routes are sent as JSON. Secrets are redacted in previews. | |
| query | No | Query parameters, such as p for a library path or q for search. | |
| action | Yes | Seafile operation to call. | |
| params | No | Path parameters, such as repo_id or group_id. | |
| confirm | No | Set to the boolean true to execute the write. Omit this field for a dry-run preview. false and the string true are rejected. |