MCP 工具
儲存 Threads 內容佇列
sosoapi_save_threads_content_queue儲存具版本的時段、暫停狀態及待處理草稿 ID。暫停會保留已接納的排程。
閱讀 Markdown設定與傳輸方式
設定: full · 傳輸方式: stdio、http
選擇 core 或 full 以控制用戶端顯示的工具;這不會變更權限。本機檔案上傳需要 stdio,無法透過 HTTP 使用。設定 SOSOAPI_OUTPUT_SCHEMAS=1 可在探索結果加入輸出結構描述。無論是否啟用此設定,工具皆會回傳結構化結果。
權限與副作用
註解幫助用戶端描述工具。每次呼叫仍會檢查使用者身分驗證、角色、資源存取和能力授權。
{
"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
}工具呼叫範例
這些範例使用已依結構描述檢查的虛構值。請將 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
}