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"
}
}
}構造化された出力
このスキーマは、成功時のツール結果に含まれる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、準備済みメディア、確認済みの公開日時に置き換え、書き込み前に適格性を確認してください。このページは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
}