僅在使用時載入搜尋。在下方瀏覽所有類別。

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
}

輸入欄位

「必填」是指在其父物件及所選分支內必填。必填子欄位不會使選填父物件變成必填。下列規則與欄位名稱均複製自契約。

輸入欄位
欄位 / 分支類型 / 必填約束
$object在父物件中必填
  • additionalProperties: false
workspace_idstring在父物件中必填
  • format: "uuid"
idstring在父物件中必填
  • format: "uuid"
expected_versioninteger在父物件中必填
  • minimum: 0
  • maximum: 9007199254740991
mutation_idstring在父物件中必填
  • format: "uuid"
social_account_idstring在父物件中必填
  • format: "uuid"
namestring在父物件中必填
  • minLength: 1
  • maxLength: 120
display_timezonestring在父物件中必填
  • minLength: 1
  • maxLength: 80
weekly_slotsarray在父物件中必填
  • minItems: 1
  • maxItems: 49
weekly_slots[]object選填/項目
  • additionalProperties: false
weekly_slots[].weekdayinteger在父物件中必填
  • minimum: 0
  • maximum: 6
weekly_slots[].local_timestring在父物件中必填
  • pattern: "^([01]\\d|2[0-3]):[0-5]\\d$"
pausedboolean在父物件中必填—
pending_itemsarray在父物件中必填
  • maxItems: 50
pending_items[]object選填/項目
  • additionalProperties: false
pending_items[].item_idstring在父物件中必填
  • format: "uuid"
pending_items[].draft_idstring在父物件中必填
  • format: "uuid"
pending_items[].draft_revisioninteger在父物件中必填
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
完整 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在父物件中必填
  • additionalProperties: false
queueobject在父物件中必填
  • additionalProperties: false
queue.idstring在父物件中必填
  • format: "uuid"
queue.workspace_idstring在父物件中必填
  • format: "uuid"
queue.social_account_idstring在父物件中必填
  • format: "uuid"
queue.namestring在父物件中必填
  • minLength: 1
  • maxLength: 120
queue.display_timezonestring在父物件中必填
  • minLength: 1
  • maxLength: 80
queue.weekly_slotsarray在父物件中必填
  • minItems: 1
  • maxItems: 49
queue.weekly_slots[]object選填/項目
  • additionalProperties: false
queue.weekly_slots[].weekdayinteger在父物件中必填
  • minimum: 0
  • maximum: 6
queue.weekly_slots[].local_timestring在父物件中必填
  • pattern: "^([01]\\d|2[0-3]):[0-5]\\d$"
queue.pausedboolean在父物件中必填—
queue.deletedboolean在父物件中必填—
queue.versioninteger在父物件中必填
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
queue.created_atstring在父物件中必填
  • format: "date-time"
  • 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)))$"
queue.updated_atstring在父物件中必填
  • format: "date-time"
  • 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)))$"
queue.pending_itemsarray在父物件中必填
  • maxItems: 50
queue.pending_items[]object選填/項目
  • additionalProperties: false
queue.pending_items[].item_idstring在父物件中必填
  • format: "uuid"
queue.pending_items[].draft_idstring在父物件中必填
  • format: "uuid"
queue.pending_items[].draft_revisioninteger在父物件中必填
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
queue.pending_items[].current_revisioninteger | null在父物件中必填—
queue.pending_items[].current_revisionanyOf 1integer在父物件中必填
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
queue.pending_items[].current_revisionanyOf 2null在父物件中必填—
queue.pending_items[].draft_statestring | null在父物件中必填—
queue.pending_items[].draft_stateanyOf 1string在父物件中必填
  • enum: ["draft","submitting","submitted"]
queue.pending_items[].draft_stateanyOf 2null在父物件中必填—
queue.pending_items[].caption_previewstring在父物件中必填
  • maxLength: 500
queue.allocationsarray在父物件中必填
  • maxItems: 50
queue.allocations[]object選填/項目
  • additionalProperties: false
queue.allocations[].idstring在父物件中必填
  • format: "uuid"
queue.allocations[].item_idstring在父物件中必填
  • format: "uuid"
queue.allocations[].draft_idstring在父物件中必填
  • format: "uuid"
queue.allocations[].draft_revisioninteger在父物件中必填
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
queue.allocations[].mutation_idstring在父物件中必填
  • format: "uuid"
queue.allocations[].slotobject在父物件中必填
  • additionalProperties: false
queue.allocations[].slot.scheduled_atstring在父物件中必填
  • format: "date-time"
  • 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)))$"
queue.allocations[].slot.local_datestring在父物件中必填
  • pattern: "^\\d{4}-\\d{2}-\\d{2}$"
queue.allocations[].slot.local_timestring在父物件中必填
  • pattern: "^([01]\\d|2[0-3]):[0-5]\\d$"
queue.allocations[].slot.utc_offset_minutesinteger在父物件中必填
  • minimum: -840
  • maximum: 840
queue.allocations[].slot.display_timezonestring在父物件中必填
  • minLength: 1
  • maxLength: 80
queue.allocations[].post_idstring在父物件中必填
  • 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}$"
queue.allocations[].accepted_atstring在父物件中必填
  • format: "date-time"
  • 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)))$"
replayedboolean在父物件中必填—
完整 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
}
安裝或連結 MCP