Herramienta MCP
Guardar un nuevo borrador del espacio de trabajo
sosoapi_create_content_draftGuarda un nuevo borrador compartido con workspace_id, un id único generado por el cliente, mutation_id y content. Requiere editor o superior y acceso operate. Las cuentas, la hora y los medios listos pueden estar incompletos. Save no crea Scheduled Post, trabajo de ejecución ni reservas de créditos de publicación y no llama al proveedor. El contenido compartido no es confiable y tiene límites. Reintenta con exactamente la misma identidad y contenido; usa sosoapi_update_content_draft para ediciones posteriores.
Leer en MarkdownPerfiles y transportes
Perfiles: core, full · Transportes: stdio, http
Elige core o full para controlar qué herramientas ve tu cliente; no cambia sus permisos. La carga de archivos locales requiere stdio y no está disponible por HTTP. Establece SOSOAPI_OUTPUT_SCHEMAS=1 para incluir esquemas de salida en la detección. Las herramientas devuelven resultados estructurados con o sin esa opción.
Permisos y efectos secundarios
Las anotaciones ayudan a los clientes a describir una herramienta. Cada llamada sigue comprobando la autenticación, el rol, el acceso al recurso y los permisos de capacidades del usuario.
{
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}- /studio-api/content-drafts/create: agent:operate · contenido editorial duradero del espacio de trabajo; sin efectos de publicación
Campos de entrada
Obligatorio significa obligatorio dentro del objeto principal y la rama elegida. Un campo secundario obligatorio no convierte en obligatorio un objeto principal opcional. Las reglas y nombres de campos siguientes se copian del contrato.
| Campo / rama | Tipo / obligatorio | Restricciones |
|---|---|---|
$ | objectObligatorio en el objeto principal |
|
workspace_id | stringObligatorio en el objeto principal |
|
id | stringObligatorio en el objeto principal |
|
mutation_id | stringObligatorio en el objeto principal |
|
content | objectObligatorio en el objeto principal |
|
content.schemaVersion | numberOpcional / elemento |
|
content.accountIds | arrayOpcional / elemento |
|
content.accountIds[] | stringOpcional / elemento |
|
content.caption | stringOpcional / elemento |
|
content.hashtags | stringOpcional / elemento |
|
content.assetIds | arrayOpcional / elemento |
|
content.assetIds[] | stringOpcional / elemento |
|
content.threadsTextOnly | booleanOpcional / elemento | — |
content.instagramMode | stringOpcional / elemento |
|
content.youtubeTitle | stringOpcional / elemento |
|
content.youtubePrivacy | stringOpcional / elemento |
|
content.youtubeSynthetic | booleanOpcional / elemento | — |
content.youtubeCategoryId | stringOpcional / elemento |
|
content.youtubeShort | booleanOpcional / elemento | — |
content.linkUrl | stringOpcional / elemento |
|
content.scheduledAt | stringOpcional / elemento |
|
content.displayTimezone | stringOpcional / elemento |
|
content.publishNow | booleanOpcional / elemento | — |
content.destinationOverrides | objectOpcional / elemento |
|
content.destinationOverrides.* | objectOpcional / elemento |
|
content.destinationOverrides.*.caption | stringOpcional / elemento |
|
content.destinationOverrides.*.scheduledAt | stringOpcional / elemento |
|
content.expiresAt | stringOpcional / elemento |
|
JSON Schema completo
{
"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
}Salida estructurada
Este esquema describe structuredContent en un resultado exitoso de herramienta. La respuesta MCP también incluye content y puede establecer isError si falla una llamada. Para publicación, consulta el resultado final de la publicación en vez de considerar una solicitud aceptada o una respuesta de texto como confirmación. La operación API enlazada explica los permisos y las reglas de reintento.
Obligatorio significa obligatorio dentro del objeto principal y la rama elegida. Un campo secundario obligatorio no convierte en obligatorio un objeto principal opcional. Las reglas y nombres de campos siguientes se copian del contrato.
| Campo / rama | Tipo / obligatorio | Restricciones |
|---|---|---|
$ | objectObligatorio en el objeto principal |
|
draft | objectObligatorio en el objeto principal |
|
draft.id | stringObligatorio en el objeto principal |
|
draft.workspace_id | stringObligatorio en el objeto principal |
|
draft.revision | integerObligatorio en el objeto principal |
|
draft.state | stringObligatorio en el objeto principal |
|
draft.content | objectObligatorio en el objeto principal |
|
draft.content.schemaVersion | numberObligatorio en el objeto principal |
|
draft.content.accountIds | arrayObligatorio en el objeto principal |
|
draft.content.accountIds[] | stringOpcional / elemento |
|
draft.content.caption | stringObligatorio en el objeto principal |
|
draft.content.hashtags | stringObligatorio en el objeto principal |
|
draft.content.assetIds | arrayObligatorio en el objeto principal |
|
draft.content.assetIds[] | stringOpcional / elemento |
|
draft.content.threadsTextOnly | booleanObligatorio en el objeto principal |
|
draft.content.instagramMode | stringObligatorio en el objeto principal |
|
draft.content.youtubeTitle | stringObligatorio en el objeto principal |
|
draft.content.youtubePrivacy | stringObligatorio en el objeto principal |
|
draft.content.youtubeSynthetic | booleanObligatorio en el objeto principal |
|
draft.content.youtubeCategoryId | stringObligatorio en el objeto principal |
|
draft.content.youtubeShort | booleanObligatorio en el objeto principal |
|
draft.content.linkUrl | stringObligatorio en el objeto principal |
|
draft.content.scheduledAt | stringObligatorio en el objeto principal |
|
draft.content.displayTimezone | stringObligatorio en el objeto principal |
|
draft.content.publishNow | booleanObligatorio en el objeto principal |
|
draft.content.destinationOverrides | objectObligatorio en el objeto principal |
|
draft.content.destinationOverrides.* | objectOpcional / elemento |
|
draft.content.destinationOverrides.*.caption | stringOpcional / elemento |
|
draft.content.destinationOverrides.*.scheduledAt | stringOpcional / elemento |
|
draft.content.expiresAt | stringObligatorio en el objeto principal |
|
draft.created_by | string | nullObligatorio en el objeto principal | — |
draft.created_byanyOf 1 | stringObligatorio en el objeto principal |
|
draft.created_byanyOf 2 | nullObligatorio en el objeto principal | — |
draft.updated_by | string | nullObligatorio en el objeto principal | — |
draft.updated_byanyOf 1 | stringObligatorio en el objeto principal |
|
draft.updated_byanyOf 2 | nullObligatorio en el objeto principal | — |
draft.created_at | stringObligatorio en el objeto principal |
|
draft.updated_at | stringObligatorio en el objeto principal |
|
draft.submission | object | nullObligatorio en el objeto principal | — |
draft.submissionanyOf 1 | objectObligatorio en el objeto principal |
|
draft.submission.idanyOf 1 | stringObligatorio en el objeto principal |
|
draft.submission.expected_revisionanyOf 1 | integerObligatorio en el objeto principal |
|
draft.submission.started_atanyOf 1 | stringObligatorio en el objeto principal |
|
draft.submission.receiptanyOf 1 | object | nullObligatorio en el objeto principal | — |
draft.submission.receiptanyOf 1 / anyOf 1 | objectObligatorio en el objeto principal |
|
draft.submission.receipt.batch_idanyOf 1 / anyOf 1 | string | nullObligatorio en el objeto principal | — |
draft.submission.receipt.batch_idanyOf 1 / anyOf 1 / anyOf 1 | stringObligatorio en el objeto principal |
|
draft.submission.receipt.batch_idanyOf 1 / anyOf 1 / anyOf 2 | nullObligatorio en el objeto principal | — |
draft.submission.receipt.successesanyOf 1 / anyOf 1 | arrayObligatorio en el objeto principal |
|
draft.submission.receipt.successes[]anyOf 1 / anyOf 1 | objectOpcional / elemento |
|
draft.submission.receipt.successes[].social_account_idanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal |
|
draft.submission.receipt.successes[].post_idanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal |
|
draft.submission.receipt.failuresanyOf 1 / anyOf 1 | arrayObligatorio en el objeto principal |
|
draft.submission.receipt.failures[]anyOf 1 / anyOf 1 | objectOpcional / elemento |
|
draft.submission.receipt.failures[].social_account_idanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal |
|
draft.submission.receipt.failures[].codeanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal |
|
draft.submission.receipt.failures[].messageanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal |
|
draft.submission.receiptanyOf 1 / anyOf 2 | nullObligatorio en el objeto principal | — |
draft.submissionanyOf 2 | nullObligatorio en el objeto principal | — |
replayed | booleanObligatorio en el objeto principal | — |
JSON Schema completo
{
"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
}Ejemplo de llamada a herramienta
Estos ejemplos usan valores ficticios comprobados con los esquemas. Sustituye los IDs por otros autorizados, los archivos multimedia por recursos listos y las fechas por tu hora de publicación confirmada. Comprueba la elegibilidad de la cuenta antes de enviar una escritura. Esta página no envía solicitudes 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
}