MCP 工具
替换项目账号默认值
sosoapi_replace_project_account_defaults一次替换项目的默认账号与覆盖设置。需要最近一次读取的 expected_defaults_version 及 idempotency_key(editor 角色)。
阅读 Markdown配置与传输方式
配置: full · 传输方式: stdio、http
选择 core 或 full 以控制客户端显示的工具;这不会变更权限。本地文件上传需要 stdio,无法通过 HTTP 使用。设置 SOSOAPI_OUTPUT_SCHEMAS=1 可在探索结果加入输出schema。无论是否启用此设置,工具皆会返回结构化结果。
权限与副作用
注解帮助客户端描述工具。每次调用仍会检查用户身份验证、角色、资源访问和能力授权。
{
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}- /studio-api/projects/account-defaults/replace:agent:operate · synchronous_http_response
输入字段
「必填」是指在其父对象及所选分支内必填。必填子字段不会使可选父对象变成必填。下列规则与字段名称均复制自契约。
| 字段 / 分支 | 类型 / 必填 | 约束 |
|---|---|---|
$ | object在父对象中必填 |
|
project_id | string在父对象中必填 |
|
expected_defaults_version | integer在父对象中必填 |
|
idempotency_key | string在父对象中必填 |
|
overrides | array在父对象中必填 |
|
overrides[] | object可选/项目 |
|
overrides[].social_account_id | string在父对象中必填 |
|
overrides[].enabled | boolean在父对象中必填 | — |
overrides[].language | string在父对象中必填 |
|
overrides[].region | string在父对象中必填 |
|
overrides[].timezone | string在父对象中必填 |
|
完整 JSON Schema
{
"type": "object",
"properties": {
"project_id": {
"type": "string",
"format": "uuid"
},
"expected_defaults_version": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 160
},
"overrides": {
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"social_account_id": {
"type": "string",
"format": "uuid"
},
"enabled": {
"type": "boolean"
},
"language": {
"type": "string",
"minLength": 1,
"maxLength": 35
},
"region": {
"type": "string",
"minLength": 1,
"maxLength": 16
},
"timezone": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"required": [
"social_account_id",
"enabled",
"language",
"region",
"timezone"
],
"additionalProperties": false
}
}
},
"required": [
"project_id",
"expected_defaults_version",
"idempotency_key",
"overrides"
],
"additionalProperties": false
}结构化输出
此 schema 描述成功工具结果中的 structuredContent。MCP 响应也包含 content,并可能在调用失败时设置 isError。对于发布,请读取帖子的最终结果,不要把获接受的请求或文字响应当作确认。链接的 API 操作说明了权限和重试规则。
「必填」是指在其父对象及所选分支内必填。必填子字段不会使可选父对象变成必填。下列规则与字段名称均复制自契约。
| 字段 / 分支 | 类型 / 必填 | 约束 |
|---|---|---|
$ | object在父对象中必填 |
|
project_id | string在父对象中必填 |
|
defaults_version | integer在父对象中必填 |
|
accounts | array在父对象中必填 | — |
accounts[] | object可选/项目 |
|
accounts[].social_account_id | string在父对象中必填 |
|
accounts[].workspace_id | string在父对象中必填 |
|
accounts[].platform | string在父对象中必填 |
|
accounts[].platform_user_id | string | null在父对象中必填 | — |
accounts[].platform_user_idanyOf 1 | string在父对象中必填 | — |
accounts[].platform_user_idanyOf 2 | null在父对象中必填 | — |
accounts[].username | string | null在父对象中必填 | — |
accounts[].usernameanyOf 1 | string在父对象中必填 | — |
accounts[].usernameanyOf 2 | null在父对象中必填 | — |
accounts[].facebook_page_name | string | null在父对象中必填 | — |
accounts[].facebook_page_nameanyOf 1 | string在父对象中必填 | — |
accounts[].facebook_page_nameanyOf 2 | null在父对象中必填 | — |
accounts[].enabled | boolean在父对象中必填 | — |
accounts[].language | string在父对象中必填 |
|
accounts[].region | string在父对象中必填 |
|
accounts[].timezone | string在父对象中必填 |
|
accounts[].resolution_source | string在父对象中必填 |
|
receipt_id | string在父对象中必填 |
|
applied | boolean在父对象中必填 | — |
deduped | boolean在父对象中必填 | — |
完整 JSON Schema
{
"type": "object",
"properties": {
"project_id": {
"type": "string",
"format": "uuid"
},
"defaults_version": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"accounts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"social_account_id": {
"type": "string",
"format": "uuid"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"platform": {
"type": "string",
"enum": [
"instagram",
"threads",
"facebook",
"youtube",
"x"
]
},
"platform_user_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"username": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"facebook_page_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
},
"language": {
"type": "string",
"minLength": 1,
"maxLength": 35
},
"region": {
"type": "string",
"minLength": 1,
"maxLength": 16
},
"timezone": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"resolution_source": {
"type": "string",
"enum": [
"project_default",
"workspace_default",
"connected_account"
]
}
},
"required": [
"social_account_id",
"workspace_id",
"platform",
"platform_user_id",
"username",
"facebook_page_name",
"enabled",
"language",
"region",
"timezone",
"resolution_source"
],
"additionalProperties": false
}
},
"receipt_id": {
"type": "string",
"format": "uuid"
},
"applied": {
"type": "boolean"
},
"deduped": {
"type": "boolean"
}
},
"required": [
"project_id",
"defaults_version",
"accounts",
"receipt_id",
"applied",
"deduped"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}工具调用示例
这些示例使用已依schema检查的虚构值。请将 ID 替换为你有权使用的 ID、将媒体替换为已就绪素材,并将日期替换为已确认的发布时间。提交写入前,请检查账号资格。本页不会发送 API 请求。
{
"name": "sosoapi_replace_project_account_defaults",
"arguments": {
"project_id": "11111111-1111-4111-8111-111111111111",
"expected_defaults_version": 1,
"idempotency_key": "example-intent-0001",
"overrides": []
}
}structuredContent
{
"project_id": "11111111-1111-4111-8111-111111111111",
"defaults_version": 1,
"accounts": [],
"receipt_id": "11111111-1111-4111-8111-111111111111",
"applied": false,
"deduped": false
}