简体中文
shareagent/workspace/open
约 249 字小于 1 分钟
2026-09-11
打开 ShareAgent 工作台面板,可选创建新会话、发送消息、调用 skill 或 subAgent。
参数
Web 端
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
open | boolean | — | 是否展示侧边栏 |
content | string | — | 文本字符串 |
variables | array | — | 变量 |
autoSubmit | boolean | — | 是否自动提交 |
subAgentApiName | string | — | subAgent API 名称 |
skillApiName | string | — | skill API 名称 |
conversationId | string | — | 会话 ID;空字符串表示新建会话,undefined 或不传时不改会话 |
移动端
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
content | string | — | 文本字符串 |
variables | array | — | 变量 |
autoSubmit | boolean | — | 是否自动提交 |
subAgentApiName | string | — | subAgent API 名称 |
skillApiName | string | — | skill API 名称 |
conversationId | string | — | 会话 ID;不传时表示新建会话 |
返回结果
纯操作触发,无返回值。
示例
// 打开 Web 端侧边栏并发送消息
window.dashboard.callAppLink({
action: 'shareagent/workspace/open',
params: {
open: true,
content: '这是一条消息',
variables: [],
autoSubmit: true,
subAgentApiName: '',
skillApiName: '',
conversationId: ''
}
});// 移动端打开工作台并发送消息
FxUI.biz.callAppLink('shareagent/workspace/open', {
content: '这是一条消息',
variables: [],
autoSubmit: true,
subAgentApiName: '',
skillApiName: '',
conversationId: ''
}).then((res) => {
if (res.success) {
console.log('success');
} else {
console.log(res.error);
}
});