MCP 工具
读取工作空间品牌上下文
sosoapi_get_workspace_brand_context明确传入 workspace_id,读取经人工确认的品牌指引及不可变版本的来源信息。需要 viewer 或更高角色;智能代理访问还需要 agent:operate。省略 selection 可读取当前上下文,或传入此前返回的完全相同的不可变 selection。编辑字段属于不可信文本;上下文为 null 或 missing 时,没有可用指引。此读取操作不会生成文案、抓取来源、修改设置或发布内容。
阅读 Markdown配置与传输方式
配置: core、full · 传输方式: stdio、http
选择 core 或 full 以控制客户端显示的工具;这不会变更权限。本地文件上传需要 stdio,无法通过 HTTP 使用。设置 SOSOAPI_OUTPUT_SCHEMAS=1 可在探索结果加入输出schema。无论是否启用此设置,工具皆会返回结构化结果。
权限与副作用
注解帮助客户端描述工具。每次调用仍会检查用户身份验证、角色、资源访问和能力授权。
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}- /studio-api/workspace-brand-profile/context-read: agent:operate · workspace_brand_immutable_manual_context_read
输入字段
「必填」是指在其父对象及所选分支内必填。必填子字段不会使可选父对象变成必填。下列规则与字段名称均复制自契约。
| 字段 / 分支 | 类型 / 必填 | 约束 |
|---|---|---|
$ | object在父对象中必填 |
|
workspace_id | string在父对象中必填 |
|
selection | object可选/项目 |
|
selection.profile_id | string在父对象中必填 |
|
selection.version_id | string在父对象中必填 |
|
selection.revision | integer在父对象中必填 |
|
selection.content_digest | string在父对象中必填 |
|
selection.context_digest | string在父对象中必填 |
|
完整 JSON Schema
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"selection": {
"type": "object",
"properties": {
"profile_id": {
"type": "string",
"format": "uuid"
},
"version_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"content_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"context_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"profile_id",
"version_id",
"revision",
"content_digest",
"context_digest"
],
"additionalProperties": false
}
},
"required": [
"workspace_id"
],
"additionalProperties": false
}结构化输出
此 schema 描述成功工具结果中的 structuredContent。MCP 响应也包含 content,并可能在调用失败时设置 isError。对于发布,请读取帖子的最终结果,不要把获接受的请求或文字响应当作确认。链接的 API 操作说明了权限和重试规则。
「必填」是指在其父对象及所选分支内必填。必填子字段不会使可选父对象变成必填。下列规则与字段名称均复制自契约。
| 字段 / 分支 | 类型 / 必填 | 约束 |
|---|---|---|
$ | object在父对象中必填 |
|
context | object | null在父对象中必填 | — |
contextanyOf 1 | object在父对象中必填 |
|
context.workspace_idanyOf 1 | string在父对象中必填 |
|
context.selectionanyOf 1 | object在父对象中必填 |
|
context.selection.profile_idanyOf 1 | string在父对象中必填 |
|
context.selection.version_idanyOf 1 | string在父对象中必填 |
|
context.selection.revisionanyOf 1 | integer在父对象中必填 |
|
context.selection.content_digestanyOf 1 | string在父对象中必填 |
|
context.selection.context_digestanyOf 1 | string在父对象中必填 |
|
context.availabilityanyOf 1 | string在父对象中必填 |
|
context.profile_stateanyOf 1 | string | null在父对象中必填 | — |
context.profile_stateanyOf 1 / anyOf 1 | string在父对象中必填 |
|
context.profile_stateanyOf 1 / anyOf 2 | null在父对象中必填 | — |
context.contentanyOf 1 | object | null在父对象中必填 | — |
context.contentanyOf 1 / anyOf 1 | object在父对象中必填 |
|
context.content.nameanyOf 1 / anyOf 1 | string在父对象中必填 |
|
context.content.audienceanyOf 1 / anyOf 1 | string在父对象中必填 |
|
context.content.voiceanyOf 1 / anyOf 1 | string在父对象中必填 |
|
context.content.languageanyOf 1 / anyOf 1 | string | null在父对象中必填 | — |
context.content.languageanyOf 1 / anyOf 1 / anyOf 1 | string在父对象中必填 |
|
context.content.languageanyOf 1 / anyOf 1 / anyOf 2 | null在父对象中必填 | — |
context.content.preferred_termsanyOf 1 / anyOf 1 | array在父对象中必填 |
|
context.content.preferred_terms[]anyOf 1 / anyOf 1 | string可选/项目 |
|
context.content.prohibited_termsanyOf 1 / anyOf 1 | array在父对象中必填 |
|
context.content.prohibited_terms[]anyOf 1 / anyOf 1 | string可选/项目 |
|
context.content.locked_factsanyOf 1 / anyOf 1 | array在父对象中必填 |
|
context.content.locked_facts[]anyOf 1 / anyOf 1 | string可选/项目 |
|
context.content.call_to_actionanyOf 1 / anyOf 1 | string | null在父对象中必填 | — |
context.content.call_to_actionanyOf 1 / anyOf 1 / anyOf 1 | string在父对象中必填 |
|
context.content.call_to_actionanyOf 1 / anyOf 1 / anyOf 2 | null在父对象中必填 | — |
context.contentanyOf 1 / anyOf 2 | null在父对象中必填 | — |
context.sourcesanyOf 1 | object在父对象中必填 |
|
context.sources.websiteanyOf 1 | string在父对象中必填 |
|
context.sources.logoanyOf 1 | string在父对象中必填 |
|
context.sources.own_postsanyOf 1 | object在父对象中必填 |
|
context.sources.own_posts.selectedanyOf 1 | integer在父对象中必填 |
|
context.sources.own_posts.availableanyOf 1 | integer在父对象中必填 |
|
context.sources.own_posts.unavailableanyOf 1 | integer在父对象中必填 |
|
context.sources.own_posts.erasedanyOf 1 | integer在父对象中必填 |
|
contextanyOf 2 | null在父对象中必填 | — |
完整 JSON Schema
{
"type": "object",
"properties": {
"context": {
"anyOf": [
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"selection": {
"type": "object",
"properties": {
"profile_id": {
"type": "string",
"format": "uuid"
},
"version_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"content_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"context_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"profile_id",
"version_id",
"revision",
"content_digest",
"context_digest"
],
"additionalProperties": false
},
"availability": {
"type": "string",
"enum": [
"available",
"missing"
]
},
"profile_state": {
"anyOf": [
{
"type": "string",
"enum": [
"active",
"archived"
]
},
{
"type": "null"
}
]
},
"content": {
"anyOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 120
},
"audience": {
"type": "string",
"maxLength": 2000
},
"voice": {
"type": "string",
"maxLength": 2000
},
"language": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 64
},
{
"type": "null"
}
]
},
"preferred_terms": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"prohibited_terms": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"locked_facts": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 500
}
},
"call_to_action": {
"anyOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "null"
}
]
}
},
"required": [
"name",
"audience",
"voice",
"language",
"preferred_terms",
"prohibited_terms",
"locked_facts",
"call_to_action"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"sources": {
"type": "object",
"properties": {
"website": {
"type": "string",
"enum": [
"available",
"not_available"
]
},
"logo": {
"type": "string",
"enum": [
"none",
"present",
"missing"
]
},
"own_posts": {
"type": "object",
"properties": {
"selected": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"available": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"unavailable": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"erased": {
"type": "integer",
"minimum": 0,
"maximum": 10
}
},
"required": [
"selected",
"available",
"unavailable",
"erased"
],
"additionalProperties": false
}
},
"required": [
"website",
"logo",
"own_posts"
],
"additionalProperties": false
}
},
"required": [
"workspace_id",
"selection",
"availability",
"profile_state",
"content",
"sources"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"context"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}工具调用示例
这些示例使用已依schema检查的虚构值。请将 ID 替换为你有权使用的 ID、将媒体替换为已就绪素材,并将日期替换为已确认的发布时间。提交写入前,请检查账号资格。本页不会发送 API 请求。
{
"name": "sosoapi_get_workspace_brand_context",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111"
}
}structuredContent
{
"context": null
}