短.在线 URL shortener + QR is an MCP server published by xn--3ds443g.xn--s7y, hosted at xn--s7y.xn--3ds443g. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 17 tools, including shorten_url, shorten_urls, get_link, resolve_short_url, create_qr.
URL shortener + QR MCP for agents (短链接/二维码). Account required to create links via MCP. Public beta.
4 connections through 4 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
为 HTTP 或 HTTPS 目标地址创建一条短链。需要已注册账号。重试必须复用相同的 idempotency_key。PREMIUM_ALIAS。 Create one HTTP or HTTPS short link (URL shortener / 短网址). A registered account is required. Retry with the same idempotency_key. PREMIUM_ALIAS.
| Parameter | Type | Description |
|---|---|---|
| url * | string | HTTP or HTTPS. Do not send longUrl. |
| alias | string | No customSlug; lowercased. |
| title | string | Optional title. |
| locale | string | en or zh-CN. Aliases zh-cn, zh-Hans, zh-hans, zh_Hans, zh_hans become zh-CN. Rejects Traditional Chinese, EN, ZH-CN, and bare zh. Blank is en. Does not rewrite URLs, names, or location. Routes stay /zh-cn. |
| idempotency_key * |
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
| string |
| Unique client key. Replays the stored result for 24h. |
{
"name": "shorten_url",
"title": "URL shortener · 短链接(短.在线)",
"description": "为 HTTP 或 HTTPS 目标地址创建一条短链。需要已注册账号。重试必须复用相同的 idempotency_key。PREMIUM_ALIAS。 Create one HTTP or HTTPS short link (URL shortener / 短网址). A registered account is required. Retry with the same idempotency_key. PREMIUM_ALIAS.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"url": "https://example.com/notes",
"alias": "notes",
"title": "Notes",
"locale": "en",
"idempotency_key": "example-create-1"
}
],
"required": [
"url",
"idempotency_key"
],
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "HTTP or HTTPS. Do not send longUrl."
},
"alias": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "No customSlug; lowercased."
},
"title": {
"type": "string",
"maxLength": 256,
"description": "Optional title."
},
"locale": {
"type": "string",
"description": "en or zh-CN. Aliases zh-cn, zh-Hans, zh-hans, zh_Hans, zh_hans become zh-CN. Rejects Traditional Chinese, EN, ZH-CN, and bare zh. Blank is en. Does not rewrite URLs, names, or location. Routes stay /zh-cn."
},
"idempotency_key": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "Unique client key. Replays the stored result for 24h."
}
}
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"id",
"state",
"short_url",
"short_url_ascii",
"destination",
"qr_tracking_url",
"qr_url",
"created_at",
"status_url"
],
"properties": {
"id": {
"type": "string"
},
"ok": {
"type": "boolean",
"const": true
},
"state": {
"type": "string",
"const": "active"
},
"qr_url": {
"type": "string"
},
"short_url": {
"type": "string"
},
"created_at": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status_url": {
"type": "string"
},
"destination": {
"type": "string"
},
"qr_tracking_url": {
"type": "string"
},
"short_url_ascii": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"id",
"state",
"created_at",
"status_url",
"error",
"message"
],
"properties": {
"id": {
"type": "string"
},
"ok": {
"type": "boolean",
"const": true
},
"error": {
"type": "string",
"const": "LINK_QUARANTINED"
},
"state": {
"type": "string",
"const": "quarantined"
},
"message": {
"type": "string"
},
"created_at": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status_url": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"plans_url": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"resend_path": {
"type": "string",
"description": "Where to resend verification email if this would raise the account's limits."
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"replay"
],
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"replay": {},
"request_id": {
"type": "string"
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}按 client_ref 对应,一次创建多条短链,可部分成功。需已注册账号。 Create several short links in one call, matched by client_ref. Partial success is allowed. A registered account is required.
| Parameter | Type | Description |
|---|---|---|
| items * | array | One link each. |
| idempotency_key * | string | Unique client key. Replays the stored result for 24h. |
{
"name": "shorten_urls",
"title": "Batch shorten · 批量短链(短.在线)",
"description": "按 client_ref 对应,一次创建多条短链,可部分成功。需已注册账号。 Create several short links in one call, matched by client_ref. Partial success is allowed. A registered account is required.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"items": [
{
"url": "https://example.com/notes",
"alias": "notes",
"title": "Notes",
"locale": "zh-cn",
"client_ref": "item-1"
}
],
"idempotency_key": "example-batch-1"
}
],
"required": [
"items",
"idempotency_key"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"client_ref",
"url"
],
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "HTTP or HTTPS. Do not send longUrl."
},
"alias": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "No customSlug; lowercased."
},
"title": {
"type": "string",
"maxLength": 256
},
"locale": {
"type": "string",
"description": "en or zh-CN. Aliases zh-cn, zh-Hans, zh-hans, zh_Hans, zh_hans become zh-CN. Rejects Traditional Chinese, EN, ZH-CN, and bare zh. Blank is en. Does not rewrite URLs, names, or location. Routes stay /zh-cn."
},
"client_ref": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Do not join on array index. The link_created event stores client_ref only when it is 1 to 64 characters matching [A-Za-z0-9._:-]. link_create_failed uses the same rule; any other value is omitted."
}
}
},
"maxItems": 100,
"minItems": 1,
"description": "One link each."
},
"idempotency_key": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "Unique client key. Replays the stored result for 24h."
}
}
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"batch_id",
"batch_mode",
"ok_count",
"fail_count",
"results"
],
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"client_ref",
"ok"
],
"properties": {
"ok": {
"type": "boolean"
},
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"problem": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"retryable": {
"type": "boolean"
},
"client_ref": {
"type": "string"
}
},
"additionalProperties": false
}
},
"batch_id": {
"type": "string"
},
"ok_count": {
"type": "number"
},
"batch_mode": {
"type": "string",
"const": "sync"
},
"fail_count": {
"type": "number"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"plans_url": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"resend_path": {
"type": "string",
"description": "Where to resend verification email if this would raise the account's limits."
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id"
],
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"request_id": {
"type": "string"
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}按 id 查询当前授权账号拥有的链接。需要已注册账号。公开状态查询用 resolve_short_url。 Fetch one owned link by id. A registered account is required. For a public status check, use resolve_short_url.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Short code or link id. |
{
"name": "get_link",
"title": "Get link · 查询单条链接(短.在线)",
"description": "按 id 查询当前授权账号拥有的链接。需要已注册账号。公开状态查询用 resolve_short_url。 Fetch one owned link by id. A registered account is required. For a public status check, use resolve_short_url.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"id": "example"
}
],
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "Short code or link id."
}
}
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"id",
"state",
"created_at",
"status_url",
"short_url",
"short_url_ascii",
"destination"
],
"properties": {
"id": {
"type": "string"
},
"ok": {
"type": "boolean",
"const": true
},
"state": {
"type": "string",
"const": "active"
},
"short_url": {
"type": "string"
},
"created_at": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status_url": {
"type": "string"
},
"destination": {
"type": "string"
},
"short_url_ascii": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"id",
"state",
"created_at",
"status_url",
"type",
"title",
"code"
],
"properties": {
"id": {
"type": "string"
},
"ok": {
"type": "boolean",
"const": true
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"state": {
"enum": [
"quarantined",
"disabled",
"blocked",
"expired"
],
"type": "string"
},
"title": {
"type": "string"
},
"created_at": {
"type": "string"
},
"expired_at": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status_url": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}查询本站短码或本站短链的已保存状态;仅 active 时返回目标地址。无需账号。不查询其他短链服务;结果不是安全结论。 Look up a 短.在线 code or short URL. Returns saved state, and the destination only when active. No account required. Does not look up other shorteners. Not a security verdict.
| Parameter | Type | Description |
|---|---|---|
| url | string | Not with code. |
| code | string | Not with url. |
{
"name": "resolve_short_url",
"title": "Inspect short link · 查询本站短链(短.在线)",
"description": "查询本站短码或本站短链的已保存状态;仅 active 时返回目标地址。无需账号。不查询其他短链服务;结果不是安全结论。 Look up a 短.在线 code or short URL. Returns saved state, and the destination only when active. No account required. Does not look up other shorteners. Not a security verdict.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"url": "https://xn--s7y.xn--3ds443g/example"
},
{
"code": "example"
}
],
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "Not with code."
},
"code": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "Not with url."
}
},
"additionalProperties": {}
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"id",
"state",
"created_at",
"status_url",
"short_url",
"short_url_ascii",
"destination"
],
"properties": {
"id": {
"type": "string"
},
"ok": {
"type": "boolean",
"const": true
},
"state": {
"type": "string",
"const": "active"
},
"short_url": {
"type": "string"
},
"created_at": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status_url": {
"type": "string"
},
"destination": {
"type": "string"
},
"short_url_ascii": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"id",
"state",
"created_at",
"status_url",
"type",
"title",
"code"
],
"properties": {
"id": {
"type": "string"
},
"ok": {
"type": "boolean",
"const": true
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"state": {
"enum": [
"quarantined",
"disabled",
"blocked",
"expired"
],
"type": "string"
},
"title": {
"type": "string"
},
"created_at": {
"type": "string"
},
"expired_at": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status_url": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}为已有短链返回二维码。新目标须先 shorten_url 再调用本工具。需已注册的所有者。不新建短链,不抓取目标地址。编码带 ?s=qr 的 ASCII 短链,与 GET /v1/links/{id}/qr 相同。image_url 不是 API 密钥、OAuth 令牌或会话。 QR for an existing short link you own. For a new destination, call shorten_url first, then create_qr. Does not create a link or fetch the destination. Encodes the ASCII short link with ?s=qr, same as GET /v1/links/{id}/qr. image_url is not an API key, OAuth token, or session.
| Parameter | Type | Description |
|---|---|---|
| id | string | Not with short_url |
| size | any | PNG side. |
| format | string | Default png 512. svg is not an image block and ignores size. |
| short_url | string | Not with id |
{
"name": "create_qr",
"title": "QR code · 二维码图片(短.在线)",
"description": "为已有短链返回二维码。新目标须先 shorten_url 再调用本工具。需已注册的所有者。不新建短链,不抓取目标地址。编码带 ?s=qr 的 ASCII 短链,与 GET /v1/links/{id}/qr 相同。image_url 不是 API 密钥、OAuth 令牌或会话。 QR for an existing short link you own. For a new destination, call shorten_url first, then create_qr. Does not create a link or fetch the destination. Encodes the ASCII short link with ?s=qr, same as GET /v1/links/{id}/qr. image_url is not an API key, OAuth token, or session.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"id": "example"
},
{
"short_url": "https://xn--s7y.xn--3ds443g/example"
},
{
"id": "example",
"size": 512,
"format": "png"
}
],
"properties": {
"id": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "Not with short_url"
},
"size": {
"anyOf": [
{
"type": "number",
"const": 256
},
{
"type": "number",
"const": 512
},
{
"type": "number",
"const": 1024
}
],
"description": "PNG side."
},
"format": {
"enum": [
"png",
"svg"
],
"type": "string",
"description": "Default png 512. svg is not an image block and ignores size."
},
"short_url": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "Not with id"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"id",
"state",
"short_url",
"short_url_ascii",
"qr_tracking_url",
"status_url",
"host_display",
"mime_type",
"pixel_size",
"image_available"
],
"properties": {
"id": {
"type": "string"
},
"ok": {
"type": "boolean",
"const": true
},
"state": {
"type": "string",
"const": "active"
},
"image_url": {
"type": "string",
"description": "Omitted if unsigned."
},
"mime_type": {
"type": "string",
"const": "image/png"
},
"short_url": {
"type": "string"
},
"pixel_size": {
"anyOf": [
{
"type": "number",
"const": 256
},
{
"type": "number",
"const": 512
},
{
"type": "number",
"const": 1024
}
]
},
"request_id": {
"type": "string"
},
"status_url": {
"type": "string"
},
"host_display": {
"type": "string"
},
"image_available": {
"type": "boolean",
"const": true
},
"qr_tracking_url": {
"type": "string"
},
"short_url_ascii": {
"type": "string"
},
"image_url_expires_at": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"id",
"state",
"short_url",
"short_url_ascii",
"qr_tracking_url",
"status_url",
"host_display",
"mime_type",
"pixel_size",
"image_available"
],
"properties": {
"id": {
"type": "string"
},
"ok": {
"type": "boolean",
"const": true
},
"state": {
"type": "string",
"const": "active"
},
"image_url": {
"type": "string",
"description": "Omitted if unsigned."
},
"mime_type": {
"type": "string",
"const": "image/svg+xml"
},
"short_url": {
"type": "string"
},
"pixel_size": {
"type": "null"
},
"request_id": {
"type": "string"
},
"status_url": {
"type": "string"
},
"host_display": {
"type": "string"
},
"image_available": {
"type": "boolean",
"const": false
},
"qr_tracking_url": {
"type": "string"
},
"short_url_ascii": {
"type": "string"
},
"image_url_expires_at": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"message",
"type",
"title",
"code",
"retryable"
],
"properties": {
"id": {
"type": "string"
},
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"state": {
"enum": [
"quarantined",
"disabled",
"blocked",
"expired"
],
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"image_available": {
"type": "boolean",
"const": false
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}列出当前账号拥有的短链。cursor 与 limit 同 GET /v1/links。需要 links:read。 List links this account owns. cursor and limit match GET /v1/links. Requires links:read.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size, an integer from 1 to 100. Default 50. Same as GET /v1/links. |
| cursor | string | Page cursor from next_cursor. Omit for the first page. |
{
"name": "get_links",
"title": "List links · 列出链接(短.在线)",
"description": "列出当前账号拥有的短链。cursor 与 limit 同 GET /v1/links。需要 links:read。 List links this account owns. cursor and limit match GET /v1/links. Requires links:read.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"limit": 20
},
{
"limit": 50,
"cursor": "MA"
}
],
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Page size, an integer from 1 to 100. Default 50. Same as GET /v1/links."
},
"cursor": {
"type": "string",
"description": "Page cursor from next_cursor. Omit for the first page."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ok",
"request_id",
"items",
"next_cursor"
],
"properties": {
"ok": {
"type": "boolean"
},
"code": {
"type": "string"
},
"tool": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"state",
"created_at",
"status_url",
"request_id"
],
"properties": {
"id": {
"type": "string"
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"state": {
"enum": [
"active",
"quarantined",
"disabled",
"blocked",
"expired"
],
"type": "string"
},
"title": {
"type": "string"
},
"short_url": {
"type": "string"
},
"created_at": {
"type": "string"
},
"expired_at": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status_url": {
"type": "string"
},
"destination": {
"type": "string"
},
"short_url_ascii": {
"type": "string"
}
},
"additionalProperties": false
}
},
"title": {
"type": "string"
},
"feature": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"next_cursor": {
"type": [
"string",
"null"
]
},
"resend_path": {
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}汇总点击统计。period 为 7d、30d 或 90d,截至昨天。clicks 是窗口内全部已存储点击,含机器人,不是人数。qr_clicks 只计人类且带二维码标记的点击,不含机器人。少于 5 次并入 other。 Aggregate click statistics. period is 7d, 30d, or 90d, ending yesterday. clicks counts every stored click row in the window, including bots, and is not a count of people. qr_clicks counts human QR-tagged clicks only. Counts under 5 fold into other. Country data: IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0. If you show country data, show this credit.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Short code of a link you own. |
| period | string | 7d, 30d, or 90d. Free can use 7d. Pro and Business can use 7d, 30d, and 90d. Omit for the plan default. |
{
"name": "get_link_analytics",
"title": "Link analytics · 链接统计(短.在线)",
"description": "汇总点击统计。period 为 7d、30d 或 90d,截至昨天。clicks 是窗口内全部已存储点击,含机器人,不是人数。qr_clicks 只计人类且带二维码标记的点击,不含机器人。少于 5 次并入 other。 Aggregate click statistics. period is 7d, 30d, or 90d, ending yesterday. clicks counts every stored click row in the window, including bots, and is not a count of people. qr_clicks counts human QR-tagged clicks only. Counts under 5 fold into other. Country data: IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0. If you show country data, show this credit.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"id": "example",
"period": "30d"
}
],
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "Short code of a link you own."
},
"period": {
"enum": [
"7d",
"30d",
"90d"
],
"type": "string",
"description": "7d, 30d, or 90d. Free can use 7d. Pro and Business can use 7d, 30d, and 90d. Omit for the plan default."
}
}
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"id",
"period",
"from",
"to",
"totals",
"timeseries",
"top",
"data_through",
"note",
"attribution"
],
"properties": {
"id": {
"type": "string"
},
"ok": {
"type": "boolean",
"const": true
},
"to": {
"type": "string"
},
"top": {
"type": "object",
"required": [
"countries",
"referrer_hosts",
"devices",
"os",
"browsers",
"utm_sources"
],
"properties": {
"os": {
"type": "array",
"items": {
"type": "object",
"required": [
"value",
"clicks"
],
"properties": {
"value": {
"type": "string"
},
"clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Human clicks. Bots and HEAD requests are excluded. Not a count of people."
}
},
"additionalProperties": false
}
},
"devices": {
"type": "array",
"items": {
"type": "object",
"required": [
"value",
"clicks"
],
"properties": {
"value": {
"type": "string"
},
"clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Human clicks. Bots and HEAD requests are excluded. Not a count of people."
}
},
"additionalProperties": false
}
},
"browsers": {
"type": "array",
"items": {
"type": "object",
"required": [
"value",
"clicks"
],
"properties": {
"value": {
"type": "string"
},
"clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Human clicks. Bots and HEAD requests are excluded. Not a count of people."
}
},
"additionalProperties": false
}
},
"countries": {
"type": "array",
"items": {
"type": "object",
"required": [
"value",
"clicks"
],
"properties": {
"value": {
"type": "string"
},
"clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Human clicks. Bots and HEAD requests are excluded. Not a count of people."
}
},
"additionalProperties": false
}
},
"utm_sources": {
"type": "array",
"items": {
"type": "object",
"required": [
"value",
"clicks"
],
"properties": {
"value": {
"type": "string"
},
"clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Human clicks. Bots and HEAD requests are excluded. Not a count of people."
}
},
"additionalProperties": false
}
},
"referrer_hosts": {
"type": "array",
"items": {
"type": "object",
"required": [
"value",
"clicks"
],
"properties": {
"value": {
"type": "string"
},
"clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Human clicks. Bots and HEAD requests are excluded. Not a count of people."
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"from": {
"type": "string"
},
"note": {
"type": "string"
},
"period": {
"enum": [
"7d",
"30d",
"90d"
],
"type": "string"
},
"totals": {
"type": "object",
"required": [
"clicks",
"human_clicks",
"bot_clicks",
"qr_clicks"
],
"properties": {
"clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Stored click rows in the window, including bots. Not a count of people."
},
"qr_clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Human QR-tagged clicks. Bots are excluded. Not scans and not a count of people."
},
"bot_clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Stored click rows that are not human clicks."
},
"human_clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Human clicks. Bots and HEAD requests are excluded. Not a count of people."
}
},
"additionalProperties": false
},
"request_id": {
"type": "string"
},
"timeseries": {
"type": "array",
"items": {
"type": "object",
"required": [
"date",
"clicks",
"human_clicks",
"bot_clicks",
"qr_clicks"
],
"properties": {
"date": {
"type": "string"
},
"clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Stored click rows in the window, including bots. Not a count of people."
},
"qr_clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Human QR-tagged clicks. Bots are excluded. Not scans and not a count of people."
},
"bot_clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Stored click rows that are not human clicks."
},
"human_clicks": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Human clicks. Bots and HEAD requests are excluded. Not a count of people."
}
},
"additionalProperties": false
}
},
"attribution": {
"type": "string"
},
"data_through": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"error",
"code",
"feature",
"tool",
"message",
"request_id",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string",
"const": "FEATURE_NOT_AVAILABLE"
},
"tool": {
"type": "string"
},
"error": {
"type": "string",
"const": "FEATURE_NOT_AVAILABLE"
},
"feature": {
"type": "string"
},
"message": {
"type": "string"
},
"plans_url": {
"type": "string"
},
"retryable": {
"type": "boolean",
"const": false
},
"request_id": {
"type": "string"
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}修改自有短链的标题或目标地址。需要 links:update。未验证邮箱或注册未满 7 天只能改标题。不会重新启用短链。PREMIUM_ALIAS_FROZEN。 Change the title or destination of a link you own. Requires links:update. Unverified email or an account under 7 days old can change the title only. Does not re-enable a link. PREMIUM_ALIAS_FROZEN.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Short code or link id you own. |
| title | string | Title, at most 256 characters. Stored on the short link. |
| destination | string | New http(s) destination. Refused when the email is unverified, the account is under 7 days old, the link is disabled, quarantined, or reported, or the 24 hour cap is used. |
{
"name": "update_link",
"title": "Update link · 更新链接(短.在线)",
"description": "修改自有短链的标题或目标地址。需要 links:update。未验证邮箱或注册未满 7 天只能改标题。不会重新启用短链。PREMIUM_ALIAS_FROZEN。 Change the title or destination of a link you own. Requires links:update. Unverified email or an account under 7 days old can change the title only. Does not re-enable a link. PREMIUM_ALIAS_FROZEN.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"id": "example",
"title": "Notes"
},
{
"id": "example",
"destination": "https://example.com/notes"
}
],
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "Short code or link id you own."
},
"title": {
"type": "string",
"maxLength": 256,
"description": "Title, at most 256 characters. Stored on the short link."
},
"destination": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "New http(s) destination. Refused when the email is unverified, the account is under 7 days old, the link is disabled, quarantined, or reported, or the 24 hour cap is used."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ok",
"request_id"
],
"properties": {
"id": {
"type": "string"
},
"ok": {
"type": "boolean"
},
"code": {
"type": "string"
},
"tool": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"state": {
"enum": [
"active",
"quarantined",
"disabled",
"blocked",
"expired"
],
"type": "string"
},
"title": {
"type": "string"
},
"feature": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"short_url": {
"type": "string"
},
"created_at": {
"type": "string"
},
"expired_at": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status_url": {
"type": "string"
},
"destination": {
"type": "string"
},
"resend_path": {
"type": "string"
},
"short_url_ascii": {
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": true
}
}停用你拥有的短链,停用后短链和二维码将停止跳转。需要 links:disable。幂等。 Disable a link you own: its short link and QR code stop redirecting. Requires links:disable. Idempotent.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Short code or link id for a link you own. |
{
"name": "disable_link",
"title": "Disable link · 停用短链(短.在线)",
"description": "停用你拥有的短链,停用后短链和二维码将停止跳转。需要 links:disable。幂等。 Disable a link you own: its short link and QR code stop redirecting. Requires links:disable. Idempotent.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"id": "example"
}
],
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "Short code or link id for a link you own."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ok",
"request_id"
],
"properties": {
"id": {
"type": "string"
},
"ok": {
"type": "boolean"
},
"code": {
"type": "string"
},
"tool": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"state": {
"enum": [
"active",
"quarantined",
"disabled",
"blocked",
"expired"
],
"type": "string"
},
"title": {
"type": "string"
},
"feature": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"short_url": {
"type": "string"
},
"created_at": {
"type": "string"
},
"expired_at": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status_url": {
"type": "string"
},
"destination": {
"type": "string"
},
"resend_path": {
"type": "string"
},
"short_url_ascii": {
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}客户端无法启动 OAuth 时的后备入口。返回浏览器注册链接。不创建账号,不接收密码,也不代用户同意条款。 Fallback when the client cannot start OAuth. Returns a browser registration link. Does not create an account, accept a password, or accept terms.
| Parameter | Type | Description |
|---|---|---|
| locale | string | Blank is en. Does not rewrite URLs, translate parameter names, or use location. Rejects Traditional Chinese, EN, ZH-CN, and bare zh. |
{
"name": "begin_registration",
"title": "Connect account · 浏览器注册入口(短.在线)",
"description": "客户端无法启动 OAuth 时的后备入口。返回浏览器注册链接。不创建账号,不接收密码,也不代用户同意条款。 Fallback when the client cannot start OAuth. Returns a browser registration link. Does not create an account, accept a password, or accept terms.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"locale": "en"
},
{
"locale": "zh-CN"
}
],
"properties": {
"locale": {
"enum": [
"en",
"zh-CN",
"zh-cn",
"zh-Hans",
"zh-hans",
"zh_Hans",
"zh_hans"
],
"type": "string",
"description": "Blank is en. Does not rewrite URLs, translate parameter names, or use location. Rejects Traditional Chinese, EN, ZH-CN, and bare zh."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"signup_url",
"expires_at",
"resume_token"
],
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"expires_at": {
"type": "string"
},
"request_id": {
"type": "string"
},
"signup_url": {
"type": "string"
},
"resume_token": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}从你提供的表格行生成短链接和二维码文件:分配 item_id、创建短链接与二维码;与你提供的表格行一一对应,每个二维码编码的都是对应的返回短链接;并返回可下载文件。部分行可成功。需要已注册账号。 Prepare short links and QR files from tabular rows you provide: assign item_id, create short links and QR codes; match each item to the row you provided so that each QR encodes the returned short link; and return downloadable files. Mixed per-item outcomes allowed. Registered account required.
| Parameter | Type | Description |
|---|---|---|
| items * | array | Rows with optional destination_url, label, language, and item_id. At most 10000 rows, 64 columns, 8192 characters per field, and 1048576 bytes of items JSON. These are request limits, not a plan allowance. A row may omit destination_url; that row is an exception in the pack, not a rejected request. |
| options | object | QR sizing, format, language, or a saved setup_id to apply. |
| recovery_campaign_id | string | Optional prior campaign_id when re-running a pack in recovery mode. |
{
"name": "prepare_campaign_pack",
"title": "Prepare campaign pack · 准备短链接和二维码文件(短.在线)",
"description": "从你提供的表格行生成短链接和二维码文件:分配 item_id、创建短链接与二维码;与你提供的表格行一一对应,每个二维码编码的都是对应的返回短链接;并返回可下载文件。部分行可成功。需要已注册账号。 Prepare short links and QR files from tabular rows you provide: assign item_id, create short links and QR codes; match each item to the row you provided so that each QR encodes the returned short link; and return downloadable files. Mixed per-item outcomes allowed. Registered account required.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"items": [
{
"label": "Row A",
"destination_url": "https://example.com/a"
}
],
"options": {
"png_size": 512,
"qr_format": "png"
}
}
],
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"item_id": {
"type": "string"
},
"language": {
"type": "string"
},
"destination_url": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"maxItems": 10000,
"minItems": 1,
"description": "Rows with optional destination_url, label, language, and item_id. At most 10000 rows, 64 columns, 8192 characters per field, and 1048576 bytes of items JSON. These are request limits, not a plan allowance. A row may omit destination_url; that row is an exception in the pack, not a rejected request."
},
"options": {
"type": "object",
"properties": {
"png_size": {
"anyOf": [
{
"type": "number",
"const": 256
},
{
"type": "number",
"const": 512
},
{
"type": "number",
"const": 1024
}
]
},
"setup_id": {
"type": "string"
},
"qr_format": {
"enum": [
"png",
"svg"
],
"type": "string"
},
"preferred_language": {
"type": "string"
}
},
"description": "QR sizing, format, language, or a saved setup_id to apply."
},
"recovery_campaign_id": {
"type": "string",
"description": "Optional prior campaign_id when re-running a pack in recovery mode."
}
}
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"campaign_id",
"ready_to_share",
"items",
"artifacts"
],
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"item_id",
"status",
"checks",
"changed_since_previous"
],
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"check",
"passed"
],
"properties": {
"check": {
"type": "string"
},
"detail": {
"type": "string"
},
"passed": {
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false
}
},
"status": {
"type": "string"
},
"item_id": {
"type": "string"
},
"exception": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"additionalProperties": false
},
"qr_filename": {
"type": "string"
},
"qr_revision": {
"type": "number"
},
"returned_url": {
"type": "string"
},
"qr_tracking_url": {
"type": "string"
},
"short_url_ascii": {
"type": "string"
},
"qr_filename_alias": {
"type": "string"
},
"short_url_unicode": {
"type": "string"
},
"changed_since_previous": {
"type": "object",
"required": [
"changed"
],
"properties": {
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"changed": {
"type": "boolean"
},
"baseline": {
"enum": [
"first_version"
],
"type": "string",
"description": "Present when this campaign has no earlier pack for this item_id."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"artifacts": {
"type": "object",
"required": [
"spreadsheet_csv",
"spreadsheet_notice",
"index_markdown",
"exception_list_markdown",
"ownership_instructions_slot_markdown",
"qr_files"
],
"properties": {
"qr_files": {
"type": "array",
"items": {
"type": "object",
"required": [
"filename",
"item_id",
"mime_type",
"bytes_base64"
],
"properties": {
"item_id": {
"type": "string"
},
"filename": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"bytes_base64": {
"type": "string"
},
"alias_filename": {
"type": "string"
}
},
"additionalProperties": false
}
},
"index_markdown": {
"type": "string"
},
"spreadsheet_csv": {
"type": "string"
},
"spreadsheet_notice": {
"type": "object",
"required": [
"en",
"zh-CN"
],
"properties": {
"en": {
"type": "string"
},
"zh-CN": {
"type": "string"
}
},
"additionalProperties": false
},
"exception_list_markdown": {
"type": "string"
},
"ownership_instructions_slot_markdown": {
"type": "string"
}
},
"additionalProperties": false
},
"request_id": {
"type": "string"
},
"campaign_id": {
"type": "string"
},
"ready_to_share": {
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}按 campaign_id 返回活动状态、逐行结果与可下载文件。需要已注册账号。 Fetch campaign state, per-item results, and downloadable files by campaign_id. Registered account required.
| Parameter | Type | Description |
|---|---|---|
| campaign_id * | string | Campaign pack id returned from prepare or retry. |
{
"name": "get_campaign_pack",
"title": "Get campaign pack · 查询短链接和二维码文件(短.在线)",
"description": "按 campaign_id 返回活动状态、逐行结果与可下载文件。需要已注册账号。 Fetch campaign state, per-item results, and downloadable files by campaign_id. Registered account required.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"campaign_id": "cmp_example"
}
],
"required": [
"campaign_id"
],
"properties": {
"campaign_id": {
"type": "string",
"minLength": 1,
"description": "Campaign pack id returned from prepare or retry."
}
}
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"campaign_id",
"ready_to_share",
"items",
"artifacts"
],
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"item_id",
"status",
"checks",
"changed_since_previous"
],
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"check",
"passed"
],
"properties": {
"check": {
"type": "string"
},
"detail": {
"type": "string"
},
"passed": {
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false
}
},
"status": {
"type": "string"
},
"item_id": {
"type": "string"
},
"exception": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"additionalProperties": false
},
"qr_filename": {
"type": "string"
},
"qr_revision": {
"type": "number"
},
"returned_url": {
"type": "string"
},
"qr_tracking_url": {
"type": "string"
},
"short_url_ascii": {
"type": "string"
},
"qr_filename_alias": {
"type": "string"
},
"short_url_unicode": {
"type": "string"
},
"changed_since_previous": {
"type": "object",
"required": [
"changed"
],
"properties": {
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"changed": {
"type": "boolean"
},
"baseline": {
"enum": [
"first_version"
],
"type": "string",
"description": "Present when this campaign has no earlier pack for this item_id."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"artifacts": {
"type": "object",
"required": [
"spreadsheet_csv",
"spreadsheet_notice",
"index_markdown",
"exception_list_markdown",
"ownership_instructions_slot_markdown",
"qr_files"
],
"properties": {
"qr_files": {
"type": "array",
"items": {
"type": "object",
"required": [
"filename",
"item_id",
"mime_type",
"bytes_base64"
],
"properties": {
"item_id": {
"type": "string"
},
"filename": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"bytes_base64": {
"type": "string"
},
"alias_filename": {
"type": "string"
}
},
"additionalProperties": false
}
},
"index_markdown": {
"type": "string"
},
"spreadsheet_csv": {
"type": "string"
},
"spreadsheet_notice": {
"type": "object",
"required": [
"en",
"zh-CN"
],
"properties": {
"en": {
"type": "string"
},
"zh-CN": {
"type": "string"
}
},
"additionalProperties": false
},
"exception_list_markdown": {
"type": "string"
},
"ownership_instructions_slot_markdown": {
"type": "string"
}
},
"additionalProperties": false
},
"request_id": {
"type": "string"
},
"campaign_id": {
"type": "string"
},
"ready_to_share": {
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}在同一 campaign_id 内按 item_id 重试失败项。不接收替换行,也不重复已成功的项。更正后的行请再次调用 prepare_campaign_pack,并带上 recovery_campaign_id 与原来的 item_id。需要已注册账号。 Retry failed item_id values in the same campaign_id. Does not accept replacement rows and does not recreate items that already succeeded. Submit a corrected row with prepare_campaign_pack, recovery_campaign_id, and the same item_id. Registered account required.
| Parameter | Type | Description |
|---|---|---|
| item_ids | array | Item ids to retry. Not replacement rows. Omit to retry failed items that are not missing-input exceptions. |
| campaign_id * | string | Campaign pack id to retry. |
{
"name": "retry_campaign_pack",
"title": "Retry campaign pack · 重试短链接和二维码文件(短.在线)",
"description": "在同一 campaign_id 内按 item_id 重试失败项。不接收替换行,也不重复已成功的项。更正后的行请再次调用 prepare_campaign_pack,并带上 recovery_campaign_id 与原来的 item_id。需要已注册账号。 Retry failed item_id values in the same campaign_id. Does not accept replacement rows and does not recreate items that already succeeded. Submit a corrected row with prepare_campaign_pack, recovery_campaign_id, and the same item_id. Registered account required.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"item_ids": [
"item_1"
],
"campaign_id": "cmp_example"
}
],
"required": [
"campaign_id"
],
"properties": {
"item_ids": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10000,
"description": "Item ids to retry. Not replacement rows. Omit to retry failed items that are not missing-input exceptions."
},
"campaign_id": {
"type": "string",
"minLength": 1,
"description": "Campaign pack id to retry."
}
}
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"campaign_id",
"ready_to_share",
"items",
"artifacts"
],
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"item_id",
"status",
"checks",
"changed_since_previous"
],
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"check",
"passed"
],
"properties": {
"check": {
"type": "string"
},
"detail": {
"type": "string"
},
"passed": {
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false
}
},
"status": {
"type": "string"
},
"item_id": {
"type": "string"
},
"exception": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"additionalProperties": false
},
"qr_filename": {
"type": "string"
},
"qr_revision": {
"type": "number"
},
"returned_url": {
"type": "string"
},
"qr_tracking_url": {
"type": "string"
},
"short_url_ascii": {
"type": "string"
},
"qr_filename_alias": {
"type": "string"
},
"short_url_unicode": {
"type": "string"
},
"changed_since_previous": {
"type": "object",
"required": [
"changed"
],
"properties": {
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"changed": {
"type": "boolean"
},
"baseline": {
"enum": [
"first_version"
],
"type": "string",
"description": "Present when this campaign has no earlier pack for this item_id."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"artifacts": {
"type": "object",
"required": [
"spreadsheet_csv",
"spreadsheet_notice",
"index_markdown",
"exception_list_markdown",
"ownership_instructions_slot_markdown",
"qr_files"
],
"properties": {
"qr_files": {
"type": "array",
"items": {
"type": "object",
"required": [
"filename",
"item_id",
"mime_type",
"bytes_base64"
],
"properties": {
"item_id": {
"type": "string"
},
"filename": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"bytes_base64": {
"type": "string"
},
"alias_filename": {
"type": "string"
}
},
"additionalProperties": false
}
},
"index_markdown": {
"type": "string"
},
"spreadsheet_csv": {
"type": "string"
},
"spreadsheet_notice": {
"type": "object",
"required": [
"en",
"zh-CN"
],
"properties": {
"en": {
"type": "string"
},
"zh-CN": {
"type": "string"
}
},
"additionalProperties": false
},
"exception_list_markdown": {
"type": "string"
},
"ownership_instructions_slot_markdown": {
"type": "string"
}
},
"additionalProperties": false
},
"request_id": {
"type": "string"
},
"campaign_id": {
"type": "string"
},
"ready_to_share": {
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}保存可复用的列映射与输出格式;不复制链接身份。需要已注册账号。 Save reusable column mappings and output format; does not copy link identities. Registered account required.
| Parameter | Type | Description |
|---|---|---|
| output_format | object | Default QR output options for this setup. |
| column_mappings | object | Spreadsheet column mapping for reusable setups. |
| naming_convention | string | Filename or label pattern for QR files. |
| preferred_language | string | Default locale for generated copy. |
{
"name": "save_campaign_setup",
"title": "Save campaign setup · 保存活动准备设置(短.在线)",
"description": "保存可复用的列映射与输出格式;不复制链接身份。需要已注册账号。 Save reusable column mappings and output format; does not copy link identities. Registered account required.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"output_format": {
"png_size": 512,
"qr_format": "png"
},
"column_mappings": {
"label_column": "title",
"destination_column": "url"
}
}
],
"properties": {
"output_format": {
"type": "object",
"properties": {
"png_size": {
"anyOf": [
{
"type": "number",
"const": 256
},
{
"type": "number",
"const": 512
},
{
"type": "number",
"const": 1024
}
]
},
"qr_format": {
"enum": [
"png",
"svg"
],
"type": "string"
},
"preferred_language": {
"type": "string"
}
},
"description": "Default QR output options for this setup."
},
"column_mappings": {
"type": "object",
"properties": {
"label_column": {
"type": "string"
},
"retain_columns": {
"type": "array",
"items": {
"type": "string"
}
},
"destination_column": {
"type": "string"
}
},
"description": "Spreadsheet column mapping for reusable setups."
},
"naming_convention": {
"type": "string",
"description": "Filename or label pattern for QR files."
},
"preferred_language": {
"type": "string",
"description": "Default locale for generated copy."
}
}
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"setup_id",
"setup"
],
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"setup": {
"type": "object",
"required": [
"setup_id",
"user_id",
"column_mappings",
"created_at"
],
"properties": {
"user_id": {
"type": "string"
},
"setup_id": {
"type": "string"
},
"created_at": {
"type": "string"
},
"output_format": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"column_mappings": {
"type": "object",
"properties": {
"label_column": {
"type": "string"
},
"retain_columns": {
"type": "array",
"items": {
"type": "string"
}
},
"destination_column": {
"type": "string"
}
},
"additionalProperties": false
},
"naming_convention": {
"type": "string"
},
"preferred_language": {
"type": "string"
}
},
"additionalProperties": false
},
"setup_id": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}将 setup 应用于新活动或显式恢复。新活动产生新 campaign/item 身份。需要已注册账号。 Apply a setup to a new campaign or explicit recovery. New campaigns get new identities. Registered account required.
| Parameter | Type | Description |
|---|---|---|
| mode | string | new_campaign or recovery. |
| items * | array | Rows to ingest using the saved column mapping. At most 10000 rows, 64 columns, 8192 characters per field, and 1048576 bytes of items JSON. These are request limits, not a plan allowance. A row may omit destination_url; that row is an exception in the pack, not a rejected request. |
| setup_id * | string | Saved setup id from save_campaign_setup. |
| recovery_campaign_id | string | Required when mode is recovery. |
{
"name": "apply_campaign_setup",
"title": "Apply campaign setup · 应用活动准备设置(短.在线)",
"description": "将 setup 应用于新活动或显式恢复。新活动产生新 campaign/item 身份。需要已注册账号。 Apply a setup to a new campaign or explicit recovery. New campaigns get new identities. Registered account required.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"mode": "new_campaign",
"items": [
{
"destination_url": "https://example.com/b"
}
],
"setup_id": "setup_example"
}
],
"required": [
"setup_id",
"items"
],
"properties": {
"mode": {
"enum": [
"new_campaign",
"recovery"
],
"type": "string",
"description": "new_campaign or recovery."
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"item_id": {
"type": "string"
},
"language": {
"type": "string"
},
"destination_url": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"maxItems": 10000,
"minItems": 1,
"description": "Rows to ingest using the saved column mapping. At most 10000 rows, 64 columns, 8192 characters per field, and 1048576 bytes of items JSON. These are request limits, not a plan allowance. A row may omit destination_url; that row is an exception in the pack, not a rejected request."
},
"setup_id": {
"type": "string",
"minLength": 1,
"description": "Saved setup id from save_campaign_setup."
},
"recovery_campaign_id": {
"type": "string",
"description": "Required when mode is recovery."
}
}
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"campaign_id",
"ready_to_share",
"items",
"artifacts"
],
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"item_id",
"status",
"checks",
"changed_since_previous"
],
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"check",
"passed"
],
"properties": {
"check": {
"type": "string"
},
"detail": {
"type": "string"
},
"passed": {
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false
}
},
"status": {
"type": "string"
},
"item_id": {
"type": "string"
},
"exception": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"additionalProperties": false
},
"qr_filename": {
"type": "string"
},
"qr_revision": {
"type": "number"
},
"returned_url": {
"type": "string"
},
"qr_tracking_url": {
"type": "string"
},
"short_url_ascii": {
"type": "string"
},
"qr_filename_alias": {
"type": "string"
},
"short_url_unicode": {
"type": "string"
},
"changed_since_previous": {
"type": "object",
"required": [
"changed"
],
"properties": {
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"changed": {
"type": "boolean"
},
"baseline": {
"enum": [
"first_version"
],
"type": "string",
"description": "Present when this campaign has no earlier pack for this item_id."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"artifacts": {
"type": "object",
"required": [
"spreadsheet_csv",
"spreadsheet_notice",
"index_markdown",
"exception_list_markdown",
"ownership_instructions_slot_markdown",
"qr_files"
],
"properties": {
"qr_files": {
"type": "array",
"items": {
"type": "object",
"required": [
"filename",
"item_id",
"mime_type",
"bytes_base64"
],
"properties": {
"item_id": {
"type": "string"
},
"filename": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"bytes_base64": {
"type": "string"
},
"alias_filename": {
"type": "string"
}
},
"additionalProperties": false
}
},
"index_markdown": {
"type": "string"
},
"spreadsheet_csv": {
"type": "string"
},
"spreadsheet_notice": {
"type": "object",
"required": [
"en",
"zh-CN"
],
"properties": {
"en": {
"type": "string"
},
"zh-CN": {
"type": "string"
}
},
"additionalProperties": false
},
"exception_list_markdown": {
"type": "string"
},
"ownership_instructions_slot_markdown": {
"type": "string"
}
},
"additionalProperties": false
},
"request_id": {
"type": "string"
},
"campaign_id": {
"type": "string"
},
"ready_to_share": {
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}删除你拥有的活动文件包。其他账号的 id 不会被删除。需要已注册账号。 Delete a campaign pack you own. Another account's id is not deleted. Registered account required.
| Parameter | Type | Description |
|---|---|---|
| campaign_id * | string | Campaign pack id to delete. Another user's id is not found. |
{
"name": "delete_campaign_pack",
"title": "Delete campaign pack · 删除活动文件包(短.在线)",
"description": "删除你拥有的活动文件包。其他账号的 id 不会被删除。需要已注册账号。 Delete a campaign pack you own. Another account's id is not deleted. Registered account required.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"campaign_id": "cmp_example"
}
],
"required": [
"campaign_id"
],
"properties": {
"campaign_id": {
"type": "string",
"minLength": 1,
"description": "Campaign pack id to delete. Another user's id is not found."
}
}
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"deleted"
],
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"deleted": {
"type": "boolean",
"const": true
},
"request_id": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}
}删除你保存的活动准备设置。其他账号的 id 不会被删除。需要已注册账号。 Delete a saved campaign setup you own. Another account's id is not deleted. Registered account required.
| Parameter | Type | Description |
|---|---|---|
| setup_id * | string | Saved setup id to delete. Another user's id is not found. |
{
"name": "delete_campaign_setup",
"title": "Delete campaign setup · 删除活动准备设置(短.在线)",
"description": "删除你保存的活动准备设置。其他账号的 id 不会被删除。需要已注册账号。 Delete a saved campaign setup you own. Another account's id is not deleted. Registered account required.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"examples": [
{
"setup_id": "setup_example"
}
],
"required": [
"setup_id"
],
"properties": {
"setup_id": {
"type": "string",
"minLength": 1,
"description": "Saved setup id to delete. Another user's id is not found."
}
}
},
"outputSchema": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"ok",
"request_id",
"deleted"
],
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"deleted": {
"type": "boolean",
"const": true
},
"request_id": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"request_id",
"error",
"code",
"message",
"type",
"title",
"retryable"
],
"properties": {
"ok": {
"type": "boolean",
"const": false
},
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"request_id": {
"type": "string"
},
"retry_after": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}
}短.在线 URL shortener + QR remote MCP (短链接/二维码). Setup: https://xn--s7y.xn--3ds443g/en/docs/mcp. Prefer short_url_ascii (punycode). Catalog: tools/list. resolve_short_url is a public read. begin_registration returns a browser signup URL only. Creating links requires a registered account (Bearer API key or OAuth). OAuth is authorization code + PKCE S256 for public clients (no client secret); grants are authorization_code and refresh_token; an omitted scope gives links:read, plus links:create if the user approves it on the consent screen. Sign in and accept terms in the browser. Revoke via Settings › Connected apps or POST /oauth/revoke. Metadata: /.well-known/oauth-protected-resource (also /.well-known/oauth-protected-resource/mcp) and /.well-known/oauth-authorization-server. Never paste API keys, access tokens or refresh tokens into chat.
Names, descriptions and schemas were written by the server and are shown as data.