AI工具与设备执行:完整报文
约 529 字大约 2 分钟
2026-10-16
本页是场景流程的完整 JSON 序列,按图中编号查阅。示例中的分支互斥,不能顺序重放全部报文;实际 ID、截止、SDP、地址和密钥须由运行时取得。实施状态及字段定义仍以场景与命令页为准。
编号报文
M01 · toolCallStart
{
"msgToken": "s04-57",
"method": "toolCallStart",
"sessionId": "s04-session",
"messageSeq": 1,
"data": {
"respId": "tool-reply",
"toolCallId": "tool-1",
"name": "deviceTakePhoto",
"arguments": {}
}
}M03 · MCP.invoke
{
"toolCallId": "tool-1",
"name": "deviceTakePhoto",
"arguments": {}
}M04 · ActionSend
{
"actionID": "takePhoto",
"params": {},
"isAsync": true
}M05 · ActionSendResult
{
"msgToken": "photo-tool-1",
"accepted": true
}M06 · action
{
"msgToken": "photo-tool-1",
"method": "action",
"actionID": "takePhoto",
"params": {}
}M07 · actionReply
{
"msgToken": "photo-tool-1",
"method": "actionReply",
"actionID": "takePhoto",
"code": 200,
"msg": "success",
"data": {
"fileUri": "<file-uri>"
}
}M08 · ActionGetOne
{
"msgToken": "photo-tool-1"
}M09 · ActionGetOneResult
{
"msgToken": "photo-tool-1",
"code": 200,
"outputParams": {
"fileUri": "<file-uri>"
}
}M10 · MCP.result
{
"toolCallId": "tool-1",
"success": true,
"fileUri": "<file-uri>"
}M11 · toolCallResult
{
"msgToken": "s04-59",
"method": "toolCallResult",
"sessionId": "s04-session",
"messageSeq": 2,
"data": {
"respId": "tool-reply",
"toolCallId": "tool-1",
"state": "succeeded",
"result": {
"fileUri": "<file-uri>"
}
}
}M12 · respTextDone
{
"msgToken": "s04-60",
"method": "respTextDone",
"sessionId": "s04-session",
"messageSeq": 3,
"data": {
"respId": "tool-reply",
"contentIndex": 0,
"text": "拍照成功。"
}
}M14 · respDone
{
"method": "respDone",
"msgToken": "s04-audit-1",
"sessionId": "s04-session",
"messageSeq": 4,
"data": {
"respId": "tool-reply",
"inputId": "input-tool",
"status": "completed",
"contentCount": 1,
"audioState": "sent"
}
}M13 · toolCallResult
{
"msgToken": "s04-61",
"method": "toolCallResult",
"sessionId": "s04-session",
"messageSeq": 5,
"data": {
"respId": "tool-reply",
"toolCallId": "tool-1",
"state": "unknown",
"result": {
"reason": "actionTimeout"
}
}
}M15 · respDone
{
"method": "respDone",
"msgToken": "s04-audit-2",
"sessionId": "s04-session",
"messageSeq": 6,
"data": {
"respId": "tool-reply",
"inputId": "input-tool",
"status": "failed",
"contentCount": 0,
"audioState": "none",
"reason": "actionTimeout"
}
}更新日志
2026/10/17 03:27
查看所有更新日志
d04e1-docs(AI与音视频): 按公共主线与场景分支整合接入手册于
