仅在使用时加载搜索。在下方浏览所有类别。

MCP 工具

获取素材导入状态

sosoapi_get_asset_import_status

通过 import_id 读取导入。发帖时传入 include_asset=true:ready 结果包含已登记素材 id、kind 和稳定的 asset_url,无需单独调用 get_asset。待处理或缺失的素材不可排程。绝不使用来源或预览 URL 作为媒体标识。如停滞,使用 job_id 读取 sosoapi_job_status;绝不启动重复导入。

阅读 Markdown

配置与传输方式

配置: core、full · 传输方式: stdio、http

选择 core 或 full 以控制客户端显示的工具;这不会变更权限。本地文件上传需要 stdio,无法通过 HTTP 使用。设置 SOSOAPI_OUTPUT_SCHEMAS=1 可在探索结果加入输出schema。无论是否启用此设置,工具皆会返回结构化结果。

权限与副作用

注解帮助客户端描述工具。每次调用仍会检查用户身份验证、角色、资源访问和能力授权。

{
  "readOnlyHint": true,
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false
}

输入字段

「必填」是指在其父对象及所选分支内必填。必填子字段不会使可选父对象变成必填。下列规则与字段名称均复制自契约。

输入字段
字段 / 分支类型 / 必填约束
$object在父对象中必填
  • additionalProperties: false
workspace_idstring在父对象中必填
  • format: "uuid"
import_idstring在父对象中必填
  • format: "uuid"
include_assetboolean可选/项目—
完整 JSON Schema
{
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "import_id": {
      "type": "string",
      "format": "uuid"
    },
    "include_asset": {
      "type": "boolean"
    }
  },
  "required": [
    "workspace_id",
    "import_id"
  ],
  "additionalProperties": false
}

结构化输出

此 schema 描述成功工具结果中的 structuredContent。MCP 响应也包含 content,并可能在调用失败时设置 isError。对于发布,请读取帖子的最终结果,不要把获接受的请求或文字响应当作确认。链接的 API 操作说明了权限和重试规则。

「必填」是指在其父对象及所选分支内必填。必填子字段不会使可选父对象变成必填。下列规则与字段名称均复制自契约。

结构化输出
字段 / 分支类型 / 必填约束
$object在父对象中必填
  • additionalProperties: false
importobject在父对象中必填
  • additionalProperties: false
import.idstring在父对象中必填
  • format: "uuid"
import.statusstring在父对象中必填
  • enum: ["queued","importing","needs_repair","ready","asset_purged","failed"]
import.job_idstring | null在父对象中必填—
import.job_idanyOf 1string在父对象中必填
  • format: "uuid"
import.job_idanyOf 2null在父对象中必填—
import.asset_idinteger | null在父对象中必填—
import.asset_idanyOf 1integer在父对象中必填
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
import.asset_idanyOf 2null在父对象中必填—
import.completed_asset_idinteger | null在父对象中必填—
import.completed_asset_idanyOf 1integer在父对象中必填
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
import.completed_asset_idanyOf 2null在父对象中必填—
import.asset_purged_atstring | null在父对象中必填—
import.asset_purged_atanyOf 1string在父对象中必填—
import.asset_purged_atanyOf 2null在父对象中必填—
import.source_urlstring在父对象中必填
  • format: "uri"
import.final_urlstring | null在父对象中必填—
import.final_urlanyOf 1string在父对象中必填
  • format: "uri"
import.final_urlanyOf 2null在父对象中必填—
import.object_keystring | null在父对象中必填—
import.object_keyanyOf 1string在父对象中必填
  • minLength: 1
import.object_keyanyOf 2null在父对象中必填—
import.content_typestring | null在父对象中必填—
import.content_typeanyOf 1string在父对象中必填
  • minLength: 1
import.content_typeanyOf 2null在父对象中必填—
import.byte_sizeinteger | null在父对象中必填—
import.byte_sizeanyOf 1integer在父对象中必填
  • minimum: 0
  • maximum: 9007199254740991
import.byte_sizeanyOf 2null在父对象中必填—
import.content_sha256string | null在父对象中必填—
import.content_sha256anyOf 1string在父对象中必填
  • pattern: "^[0-9a-f]{64}$"
import.content_sha256anyOf 2null在父对象中必填—
import.media_probereference | null在父对象中必填—
import.media_probeanyOf 1string | number | boolean | null | array | object在父对象中必填—
import.media_probeanyOf 1 / anyOf 1string在父对象中必填—
import.media_probeanyOf 1 / anyOf 2number在父对象中必填—
import.media_probeanyOf 1 / anyOf 3boolean在父对象中必填—
import.media_probeanyOf 1 / anyOf 4null在父对象中必填—
import.media_probeanyOf 1 / anyOf 5array在父对象中必填—
import.media_probe[]anyOf 1 / anyOf 5reference可选/项目
  • #/definitions/__schema0
import.media_probeanyOf 1 / anyOf 6object在父对象中必填
  • additionalProperties: {"$ref":"#/definitions/__schema0"}
import.media_probe.*anyOf 1 / anyOf 6reference可选/项目
  • #/definitions/__schema0
import.media_probeanyOf 2null在父对象中必填—
import.error_messagestring | null在父对象中必填—
import.error_messageanyOf 1string在父对象中必填—
import.error_messageanyOf 2null在父对象中必填—
import.created_atstring在父对象中必填—
import.completed_atstring | null在父对象中必填—
import.completed_atanyOf 1string在父对象中必填—
import.completed_atanyOf 2null在父对象中必填—
assetobject | null可选/项目—
assetanyOf 1object可选/项目
  • additionalProperties: false
asset.idanyOf 1integer | string在父对象中必填—
asset.idanyOf 1 / anyOf 1integer在父对象中必填
  • minimum: -9007199254740991
  • maximum: 9007199254740991
asset.idanyOf 1 / anyOf 2string在父对象中必填—
asset.asset_typeanyOf 1string在父对象中必填
  • enum: ["text","image","video","audio"]
asset.asset_urlanyOf 1string | null在父对象中必填—
asset.asset_urlanyOf 1 / anyOf 1string在父对象中必填—
asset.asset_urlanyOf 1 / anyOf 2null在父对象中必填—
assetanyOf 2null可选/项目—
完整 JSON Schema
{
  "type": "object",
  "properties": {
    "import": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "importing",
            "needs_repair",
            "ready",
            "asset_purged",
            "failed"
          ]
        },
        "job_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "asset_id": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "completed_asset_id": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "asset_purged_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_url": {
          "type": "string",
          "format": "uri"
        },
        "final_url": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri"
            },
            {
              "type": "null"
            }
          ]
        },
        "object_key": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "content_type": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "byte_size": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "content_sha256": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "media_probe": {
          "anyOf": [
            {
              "$ref": "#/definitions/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "error_message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "status",
        "job_id",
        "asset_id",
        "completed_asset_id",
        "asset_purged_at",
        "source_url",
        "final_url",
        "object_key",
        "content_type",
        "byte_size",
        "content_sha256",
        "media_probe",
        "error_message",
        "created_at",
        "completed_at"
      ],
      "additionalProperties": false
    },
    "asset": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "string"
                }
              ]
            },
            "asset_type": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "video",
                "audio"
              ]
            },
            "asset_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "id",
            "asset_type",
            "asset_url"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "import"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/definitions/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/definitions/__schema0"
          }
        }
      ]
    }
  }
}

工具调用示例

这些示例使用已依schema检查的虚构值。请将 ID 替换为你有权使用的 ID、将媒体替换为已就绪素材,并将日期替换为已确认的发布时间。提交写入前,请检查账号资格。本页不会发送 API 请求。

{
  "name": "sosoapi_get_asset_import_status",
  "arguments": {
    "workspace_id": "11111111-1111-4111-8111-111111111111",
    "import_id": "11111111-1111-4111-8111-111111111111"
  }
}

structuredContent

{
  "import": {
    "id": "11111111-1111-4111-8111-111111111111",
    "status": "queued",
    "job_id": null,
    "asset_id": null,
    "completed_asset_id": null,
    "asset_purged_at": null,
    "source_url": "https://example.com/media.png",
    "final_url": null,
    "object_key": null,
    "content_type": null,
    "byte_size": null,
    "content_sha256": null,
    "media_probe": null,
    "error_message": null,
    "created_at": "example",
    "completed_at": null
  }
}
安装或连接 MCP