MCP 工具
保存 Threads 内容队列
sosoapi_save_threads_content_queue保存带版本的时段、暂停状态及待处理草稿 ID。暂停会保留已接纳的排期。
阅读 Markdown配置与传输方式
配置: full · 传输方式: stdio、http
选择 core 或 full 以控制客户端显示的工具;这不会变更权限。本地文件上传需要 stdio,无法通过 HTTP 使用。设置 SOSOAPI_OUTPUT_SCHEMAS=1 可在探索结果加入输出schema。无论是否启用此设置,工具皆会返回结构化结果。
权限与副作用
注解帮助客户端描述工具。每次调用仍会检查用户身份验证、角色、资源访问和能力授权。
{
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}- /studio-api/threads-content-queues/save: agent:operate · 带版本的队列配置/待处理引用;暂停及删除会保留所有已接纳排期与回执
输入字段
「必填」是指在其父对象及所选分支内必填。必填子字段不会使可选父对象变成必填。下列规则与字段名称均复制自契约。
| 字段 / 分支 | 类型 / 必填 | 约束 |
|---|---|---|
$ | object在父对象中必填 |
|
workspace_id | string在父对象中必填 |
|
id | string在父对象中必填 |
|
expected_version | integer在父对象中必填 |
|
mutation_id | string在父对象中必填 |
|
social_account_id | string在父对象中必填 |
|
name | string在父对象中必填 |
|
display_timezone | string在父对象中必填 |
|
weekly_slots | array在父对象中必填 |
|
weekly_slots[] | object可选/项目 |
|
weekly_slots[].weekday | integer在父对象中必填 |
|
weekly_slots[].local_time | string在父对象中必填 |
|
paused | boolean在父对象中必填 | — |
pending_items | array在父对象中必填 |
|
pending_items[] | object可选/项目 |
|
pending_items[].item_id | string在父对象中必填 |
|
pending_items[].draft_id | string在父对象中必填 |
|
pending_items[].draft_revision | integer在父对象中必填 |
|
完整 JSON Schema
{
"type": "object",
"properties": {
"workspace_id": {
"$ref": "#/$defs/s0"
},
"id": {
"$ref": "#/$defs/s0"
},
"expected_version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"mutation_id": {
"$ref": "#/$defs/s0"
},
"social_account_id": {
"$ref": "#/$defs/s0"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"display_timezone": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"weekly_slots": {
"minItems": 1,
"maxItems": 49,
"type": "array",
"items": {
"type": "object",
"properties": {
"weekday": {
"type": "integer",
"minimum": 0,
"maximum": 6
},
"local_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
}
},
"required": [
"weekday",
"local_time"
],
"additionalProperties": false
}
},
"paused": {
"type": "boolean"
},
"pending_items": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"item_id": {
"$ref": "#/$defs/s0"
},
"draft_id": {
"$ref": "#/$defs/s0"
},
"draft_revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"item_id",
"draft_id",
"draft_revision"
],
"additionalProperties": false
}
}
},
"required": [
"workspace_id",
"id",
"expected_version",
"mutation_id",
"social_account_id",
"name",
"display_timezone",
"weekly_slots",
"paused",
"pending_items"
],
"additionalProperties": false,
"$defs": {
"s0": {
"type": "string",
"format": "uuid"
}
}
}结构化输出
此 schema 描述成功工具结果中的 structuredContent。MCP 响应也包含 content,并可能在调用失败时设置 isError。对于发布,请读取帖子的最终结果,不要把获接受的请求或文字响应当作确认。链接的 API 操作说明了权限和重试规则。
「必填」是指在其父对象及所选分支内必填。必填子字段不会使可选父对象变成必填。下列规则与字段名称均复制自契约。
| 字段 / 分支 | 类型 / 必填 | 约束 |
|---|---|---|
$ | object在父对象中必填 |
|
queue | object在父对象中必填 |
|
queue.id | string在父对象中必填 |
|
queue.workspace_id | string在父对象中必填 |
|
queue.social_account_id | string在父对象中必填 |
|
queue.name | string在父对象中必填 |
|
queue.display_timezone | string在父对象中必填 |
|
queue.weekly_slots | array在父对象中必填 |
|
queue.weekly_slots[] | object可选/项目 |
|
queue.weekly_slots[].weekday | integer在父对象中必填 |
|
queue.weekly_slots[].local_time | string在父对象中必填 |
|
queue.paused | boolean在父对象中必填 | — |
queue.deleted | boolean在父对象中必填 | — |
queue.version | integer在父对象中必填 |
|
queue.created_at | string在父对象中必填 |
|
queue.updated_at | string在父对象中必填 |
|
queue.pending_items | array在父对象中必填 |
|
queue.pending_items[] | object可选/项目 |
|
queue.pending_items[].item_id | string在父对象中必填 |
|
queue.pending_items[].draft_id | string在父对象中必填 |
|
queue.pending_items[].draft_revision | integer在父对象中必填 |
|
queue.pending_items[].current_revision | integer | null在父对象中必填 | — |
queue.pending_items[].current_revisionanyOf 1 | integer在父对象中必填 |
|
queue.pending_items[].current_revisionanyOf 2 | null在父对象中必填 | — |
queue.pending_items[].draft_state | string | null在父对象中必填 | — |
queue.pending_items[].draft_stateanyOf 1 | string在父对象中必填 |
|
queue.pending_items[].draft_stateanyOf 2 | null在父对象中必填 | — |
queue.pending_items[].caption_preview | string在父对象中必填 |
|
queue.allocations | array在父对象中必填 |
|
queue.allocations[] | object可选/项目 |
|
queue.allocations[].id | string在父对象中必填 |
|
queue.allocations[].item_id | string在父对象中必填 |
|
queue.allocations[].draft_id | string在父对象中必填 |
|
queue.allocations[].draft_revision | integer在父对象中必填 |
|
queue.allocations[].mutation_id | string在父对象中必填 |
|
queue.allocations[].slot | object在父对象中必填 |
|
queue.allocations[].slot.scheduled_at | string在父对象中必填 |
|
queue.allocations[].slot.local_date | string在父对象中必填 |
|
queue.allocations[].slot.local_time | string在父对象中必填 |
|
queue.allocations[].slot.utc_offset_minutes | integer在父对象中必填 |
|
queue.allocations[].slot.display_timezone | string在父对象中必填 |
|
queue.allocations[].post_id | string在父对象中必填 |
|
queue.allocations[].accepted_at | string在父对象中必填 |
|
replayed | boolean在父对象中必填 | — |
完整 JSON Schema
{
"type": "object",
"properties": {
"queue": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"display_timezone": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"weekly_slots": {
"minItems": 1,
"maxItems": 49,
"type": "array",
"items": {
"type": "object",
"properties": {
"weekday": {
"type": "integer",
"minimum": 0,
"maximum": 6
},
"local_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
}
},
"required": [
"weekday",
"local_time"
],
"additionalProperties": false
}
},
"paused": {
"type": "boolean"
},
"deleted": {
"type": "boolean"
},
"version": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"created_at": {
"type": "string",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"format": "date-time"
},
"updated_at": {
"type": "string",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"format": "date-time"
},
"pending_items": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"item_id": {
"type": "string",
"format": "uuid"
},
"draft_id": {
"type": "string",
"format": "uuid"
},
"draft_revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"current_revision": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"draft_state": {
"anyOf": [
{
"type": "string",
"enum": [
"draft",
"submitting",
"submitted"
]
},
{
"type": "null"
}
]
},
"caption_preview": {
"type": "string",
"maxLength": 500
}
},
"required": [
"item_id",
"draft_id",
"draft_revision",
"current_revision",
"draft_state",
"caption_preview"
],
"additionalProperties": false
}
},
"allocations": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"item_id": {
"type": "string",
"format": "uuid"
},
"draft_id": {
"type": "string",
"format": "uuid"
},
"draft_revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"mutation_id": {
"type": "string",
"format": "uuid"
},
"slot": {
"type": "object",
"properties": {
"scheduled_at": {
"type": "string",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"format": "date-time"
},
"local_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"local_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
"utc_offset_minutes": {
"type": "integer",
"minimum": -840,
"maximum": 840
},
"display_timezone": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"required": [
"scheduled_at",
"local_date",
"local_time",
"utc_offset_minutes",
"display_timezone"
],
"additionalProperties": false
},
"post_id": {
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
},
"accepted_at": {
"type": "string",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"format": "date-time"
}
},
"required": [
"id",
"item_id",
"draft_id",
"draft_revision",
"mutation_id",
"slot",
"post_id",
"accepted_at"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"workspace_id",
"social_account_id",
"name",
"display_timezone",
"weekly_slots",
"paused",
"deleted",
"version",
"created_at",
"updated_at",
"pending_items",
"allocations"
],
"additionalProperties": false
},
"replayed": {
"type": "boolean"
}
},
"required": [
"queue",
"replayed"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}工具调用示例
这些示例使用已依schema检查的虚构值。请将 ID 替换为你有权使用的 ID、将媒体替换为已就绪素材,并将日期替换为已确认的发布时间。提交写入前,请检查账号资格。本页不会发送 API 请求。
{
"name": "sosoapi_save_threads_content_queue",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"id": "44444444-4444-4444-8444-444444444444",
"expected_version": 0,
"mutation_id": "60000000-0000-4000-8000-000000000020",
"social_account_id": "22222222-2222-4222-8222-222222222222",
"name": "Fictional weekly ideas",
"display_timezone": "UTC",
"weekly_slots": [
{
"weekday": 4,
"local_time": "09:00"
}
],
"paused": false,
"pending_items": [
{
"item_id": "80000000-0000-4000-8000-000000000003",
"draft_id": "70000000-0000-4000-8000-000000000003",
"draft_revision": 1
}
]
}
}structuredContent
{
"queue": {
"id": "44444444-4444-4444-8444-444444444444",
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "22222222-2222-4222-8222-222222222222",
"name": "Fictional weekly ideas",
"display_timezone": "UTC",
"weekly_slots": [
{
"weekday": 4,
"local_time": "09:00"
}
],
"paused": false,
"deleted": false,
"version": 1,
"created_at": "2099-01-14T09:00:00Z",
"updated_at": "2099-01-14T09:00:00Z",
"pending_items": [
{
"item_id": "80000000-0000-4000-8000-000000000003",
"draft_id": "70000000-0000-4000-8000-000000000003",
"draft_revision": 1,
"current_revision": 1,
"draft_state": "draft",
"caption_preview": "A fictional announcement."
}
],
"allocations": []
},
"replayed": false
}