MCPツール
新しいワークスペース下書きを保存
sosoapi_create_content_draftworkspace_id、クライアント生成の一意な id、mutation_id、content で共有ワークスペース下書きを新規保存します。editor 以上と operate 権限が必要です。アカウント、時刻、利用可能なメディアは未完成でも構いません。Save は Scheduled Post、実行作業、公開クレジットの予約を作成せず、プロバイダーも呼び出しません。共有編集内容は信頼できず、長さも制限されます。再試行では識別情報と内容を完全に同一に保ち、その後の編集には sosoapi_update_content_draft を使ってください。
Markdownで読むプロファイルと通信方式
プロファイル: core, full · 通信方式: stdio, http
coreまたはfullで表示ツールを選べますが権限は変わりません。ローカルアップロードはstdioのみでHTTPは非対応です。SOSOAPI_OUTPUT_SCHEMAS=1で検出時に出力スキーマを含めます。設定に関係なく構造化結果を返します。
権限と副作用
注釈はクライアントがツールを説明するためのものです。各呼び出しでは引き続き認証、ロール、リソースアクセス、機能権限を確認します。
{
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}- /studio-api/content-drafts/create: agent:operate · 永続保存されたワークスペース編集内容。公開の副作用なし
入力フィールド
必須とは、親オブジェクトと選択分岐内で必須という意味です。必須の子があっても任意の親は必須になりません。以下のルールとフィールド名は契約から転記しています。
| フィールド/分岐 | 型/必須 | 制約 |
|---|---|---|
$ | object親要素内で必須 |
|
workspace_id | string親要素内で必須 |
|
id | string親要素内で必須 |
|
mutation_id | string親要素内で必須 |
|
content | object親要素内で必須 |
|
content.schemaVersion | number任意/項目 |
|
content.accountIds | array任意/項目 |
|
content.accountIds[] | string任意/項目 |
|
content.caption | string任意/項目 |
|
content.hashtags | string任意/項目 |
|
content.assetIds | array任意/項目 |
|
content.assetIds[] | string任意/項目 |
|
content.threadsTextOnly | boolean任意/項目 | — |
content.instagramMode | string任意/項目 |
|
content.youtubeTitle | string任意/項目 |
|
content.youtubePrivacy | string任意/項目 |
|
content.youtubeSynthetic | boolean任意/項目 | — |
content.youtubeCategoryId | string任意/項目 |
|
content.youtubeShort | boolean任意/項目 | — |
content.linkUrl | string任意/項目 |
|
content.scheduledAt | string任意/項目 |
|
content.displayTimezone | string任意/項目 |
|
content.publishNow | boolean任意/項目 | — |
content.destinationOverrides | object任意/項目 |
|
content.destinationOverrides.* | object任意/項目 |
|
content.destinationOverrides.*.caption | string任意/項目 |
|
content.destinationOverrides.*.scheduledAt | string任意/項目 |
|
content.expiresAt | string任意/項目 |
|
完全なJSON Schema
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"id": {
"type": "string",
"format": "uuid"
},
"mutation_id": {
"type": "string",
"format": "uuid"
},
"content": {
"type": "object",
"properties": {
"schemaVersion": {
"type": "number",
"enum": [
1
]
},
"accountIds": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"caption": {
"type": "string",
"maxLength": 5000
},
"hashtags": {
"type": "string",
"maxLength": 5000
},
"assetIds": {
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"maxLength": 16,
"pattern": "^[1-9][0-9]*$"
}
},
"threadsTextOnly": {
"type": "boolean"
},
"instagramMode": {
"type": "string",
"enum": [
"IMAGE",
"REELS",
"CAROUSEL",
"STORY_IMAGE",
"STORY_VIDEO"
]
},
"youtubeTitle": {
"type": "string",
"maxLength": 100
},
"youtubePrivacy": {
"type": "string",
"enum": [
"private",
"unlisted",
"public"
]
},
"youtubeSynthetic": {
"type": "boolean"
},
"youtubeCategoryId": {
"type": "string",
"maxLength": 32
},
"youtubeShort": {
"type": "boolean"
},
"linkUrl": {
"type": "string",
"maxLength": 2048
},
"scheduledAt": {
"type": "string",
"maxLength": 64
},
"displayTimezone": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"publishNow": {
"type": "boolean"
},
"destinationOverrides": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"caption": {
"type": "string",
"maxLength": 5000
},
"scheduledAt": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
}
},
"expiresAt": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
}
},
"required": [
"workspace_id",
"id",
"mutation_id",
"content"
],
"additionalProperties": false
}構造化された出力
このスキーマは、成功時のツール結果に含まれるstructuredContentを説明します。MCPレスポンスはcontentも含み、失敗時にisErrorを設定する場合があります。公開では、受理やテキスト応答を確認済みと扱わず、投稿の最終結果を取得してください。権限・再試行ルールはリンク先のAPI操作をご覧ください。
必須とは、親オブジェクトと選択分岐内で必須という意味です。必須の子があっても任意の親は必須になりません。以下のルールとフィールド名は契約から転記しています。
| フィールド/分岐 | 型/必須 | 制約 |
|---|---|---|
$ | object親要素内で必須 |
|
draft | object親要素内で必須 |
|
draft.id | string親要素内で必須 |
|
draft.workspace_id | string親要素内で必須 |
|
draft.revision | integer親要素内で必須 |
|
draft.state | string親要素内で必須 |
|
draft.content | object親要素内で必須 |
|
draft.content.schemaVersion | number親要素内で必須 |
|
draft.content.accountIds | array親要素内で必須 |
|
draft.content.accountIds[] | string任意/項目 |
|
draft.content.caption | string親要素内で必須 |
|
draft.content.hashtags | string親要素内で必須 |
|
draft.content.assetIds | array親要素内で必須 |
|
draft.content.assetIds[] | string任意/項目 |
|
draft.content.threadsTextOnly | boolean親要素内で必須 |
|
draft.content.instagramMode | string親要素内で必須 |
|
draft.content.youtubeTitle | string親要素内で必須 |
|
draft.content.youtubePrivacy | string親要素内で必須 |
|
draft.content.youtubeSynthetic | boolean親要素内で必須 |
|
draft.content.youtubeCategoryId | string親要素内で必須 |
|
draft.content.youtubeShort | boolean親要素内で必須 |
|
draft.content.linkUrl | string親要素内で必須 |
|
draft.content.scheduledAt | string親要素内で必須 |
|
draft.content.displayTimezone | string親要素内で必須 |
|
draft.content.publishNow | boolean親要素内で必須 |
|
draft.content.destinationOverrides | object親要素内で必須 |
|
draft.content.destinationOverrides.* | object任意/項目 |
|
draft.content.destinationOverrides.*.caption | string任意/項目 |
|
draft.content.destinationOverrides.*.scheduledAt | string任意/項目 |
|
draft.content.expiresAt | string親要素内で必須 |
|
draft.created_by | string | null親要素内で必須 | — |
draft.created_byanyOf 1 | string親要素内で必須 |
|
draft.created_byanyOf 2 | null親要素内で必須 | — |
draft.updated_by | string | null親要素内で必須 | — |
draft.updated_byanyOf 1 | string親要素内で必須 |
|
draft.updated_byanyOf 2 | null親要素内で必須 | — |
draft.created_at | string親要素内で必須 |
|
draft.updated_at | string親要素内で必須 |
|
draft.submission | object | null親要素内で必須 | — |
draft.submissionanyOf 1 | object親要素内で必須 |
|
draft.submission.idanyOf 1 | string親要素内で必須 |
|
draft.submission.expected_revisionanyOf 1 | integer親要素内で必須 |
|
draft.submission.started_atanyOf 1 | string親要素内で必須 |
|
draft.submission.receiptanyOf 1 | object | null親要素内で必須 | — |
draft.submission.receiptanyOf 1 / anyOf 1 | object親要素内で必須 |
|
draft.submission.receipt.batch_idanyOf 1 / anyOf 1 | string | null親要素内で必須 | — |
draft.submission.receipt.batch_idanyOf 1 / anyOf 1 / anyOf 1 | string親要素内で必須 |
|
draft.submission.receipt.batch_idanyOf 1 / anyOf 1 / anyOf 2 | null親要素内で必須 | — |
draft.submission.receipt.successesanyOf 1 / anyOf 1 | array親要素内で必須 |
|
draft.submission.receipt.successes[]anyOf 1 / anyOf 1 | object任意/項目 |
|
draft.submission.receipt.successes[].social_account_idanyOf 1 / anyOf 1 | string親要素内で必須 |
|
draft.submission.receipt.successes[].post_idanyOf 1 / anyOf 1 | string親要素内で必須 |
|
draft.submission.receipt.failuresanyOf 1 / anyOf 1 | array親要素内で必須 |
|
draft.submission.receipt.failures[]anyOf 1 / anyOf 1 | object任意/項目 |
|
draft.submission.receipt.failures[].social_account_idanyOf 1 / anyOf 1 | string親要素内で必須 |
|
draft.submission.receipt.failures[].codeanyOf 1 / anyOf 1 | string親要素内で必須 |
|
draft.submission.receipt.failures[].messageanyOf 1 / anyOf 1 | string親要素内で必須 |
|
draft.submission.receiptanyOf 1 / anyOf 2 | null親要素内で必須 | — |
draft.submissionanyOf 2 | null親要素内で必須 | — |
replayed | boolean親要素内で必須 | — |
完全なJSON Schema
{
"type": "object",
"properties": {
"draft": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"state": {
"type": "string",
"enum": [
"draft",
"submitting",
"submitted"
]
},
"content": {
"type": "object",
"properties": {
"schemaVersion": {
"default": 1,
"type": "number",
"const": 1
},
"accountIds": {
"default": [],
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"caption": {
"default": "",
"type": "string",
"maxLength": 5000
},
"hashtags": {
"default": "",
"type": "string",
"maxLength": 5000
},
"assetIds": {
"default": [],
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"maxLength": 16,
"pattern": "^[1-9][0-9]*$"
}
},
"threadsTextOnly": {
"default": false,
"type": "boolean"
},
"instagramMode": {
"default": "REELS",
"type": "string",
"enum": [
"IMAGE",
"REELS",
"CAROUSEL",
"STORY_IMAGE",
"STORY_VIDEO"
]
},
"youtubeTitle": {
"default": "",
"type": "string",
"maxLength": 100
},
"youtubePrivacy": {
"default": "private",
"type": "string",
"enum": [
"private",
"unlisted",
"public"
]
},
"youtubeSynthetic": {
"default": false,
"type": "boolean"
},
"youtubeCategoryId": {
"default": "",
"type": "string",
"maxLength": 32
},
"youtubeShort": {
"default": false,
"type": "boolean"
},
"linkUrl": {
"default": "",
"type": "string",
"maxLength": 2048
},
"scheduledAt": {
"default": "",
"type": "string",
"maxLength": 64
},
"displayTimezone": {
"default": "UTC",
"type": "string",
"minLength": 1,
"maxLength": 128
},
"publishNow": {
"default": false,
"type": "boolean"
},
"destinationOverrides": {
"default": {},
"type": "object",
"propertyNames": {
"type": "string",
"format": "uuid"
},
"additionalProperties": {
"type": "object",
"properties": {
"caption": {
"type": "string",
"maxLength": 5000
},
"scheduledAt": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
}
},
"expiresAt": {
"default": "",
"type": "string",
"maxLength": 64
}
},
"required": [
"schemaVersion",
"accountIds",
"caption",
"hashtags",
"assetIds",
"threadsTextOnly",
"instagramMode",
"youtubeTitle",
"youtubePrivacy",
"youtubeSynthetic",
"youtubeCategoryId",
"youtubeShort",
"linkUrl",
"scheduledAt",
"displayTimezone",
"publishNow",
"destinationOverrides",
"expiresAt"
],
"additionalProperties": false
},
"created_by": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"updated_by": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"created_at": {
"type": "string",
"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)))$"
},
"updated_at": {
"type": "string",
"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)))$"
},
"submission": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"expected_revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"started_at": {
"type": "string",
"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)))$"
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {
"batch_id": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"successes": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"social_account_id": {
"type": "string",
"format": "uuid"
},
"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}$"
}
},
"required": [
"social_account_id",
"post_id"
],
"additionalProperties": false
}
},
"failures": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"social_account_id": {
"type": "string",
"format": "uuid"
},
"code": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"message": {
"type": "string",
"maxLength": 2000
}
},
"required": [
"social_account_id",
"code",
"message"
],
"additionalProperties": false
}
}
},
"required": [
"batch_id",
"successes",
"failures"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"expected_revision",
"started_at",
"receipt"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"workspace_id",
"revision",
"state",
"content",
"created_by",
"updated_by",
"created_at",
"updated_at",
"submission"
],
"additionalProperties": false
},
"replayed": {
"type": "boolean"
}
},
"required": [
"draft",
"replayed"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}ツール呼び出しの例
スキーマ確認済みの架空値の例です。認可されたID、準備済みメディア、確認済みの公開日時に置き換え、書き込み前に適格性を確認してください。このページはAPIを呼びません。
{
"name": "sosoapi_create_content_draft",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"id": "44444444-4444-4444-8444-444444444444",
"mutation_id": "55555555-5555-4555-8555-555555555555",
"content": {
"schemaVersion": 1,
"accountIds": [],
"caption": "An unfinished announcement for team review.",
"hashtags": "",
"assetIds": [],
"threadsTextOnly": false,
"instagramMode": "REELS",
"youtubeTitle": "",
"youtubePrivacy": "private",
"youtubeSynthetic": false,
"youtubeCategoryId": "",
"youtubeShort": false,
"linkUrl": "",
"scheduledAt": "",
"displayTimezone": "UTC",
"publishNow": false,
"destinationOverrides": {},
"expiresAt": ""
}
}
}structuredContent
{
"draft": {
"id": "44444444-4444-4444-8444-444444444444",
"workspace_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"state": "draft",
"content": {
"schemaVersion": 1,
"accountIds": [],
"caption": "An unfinished announcement for team review.",
"hashtags": "",
"assetIds": [],
"threadsTextOnly": false,
"instagramMode": "REELS",
"youtubeTitle": "",
"youtubePrivacy": "private",
"youtubeSynthetic": false,
"youtubeCategoryId": "",
"youtubeShort": false,
"linkUrl": "",
"scheduledAt": "",
"displayTimezone": "UTC",
"publishNow": false,
"destinationOverrides": {},
"expiresAt": ""
},
"created_by": null,
"updated_by": null,
"created_at": "2099-01-15T08:00:00Z",
"updated_at": "2099-01-15T08:30:00Z",
"submission": null
},
"replayed": false
}