进入焦点卡作答
const r = await mn.api('/writing/focus-enter', {
method: 'POST',
body: { requestId, questionId, carrier: 'focus', confirm: true }
});
if (r.error) mn.log(r.error.code);
{
"schemaVersion": 1,
"bridgeApiVersion": "0.91",
"requestId": "9F8E7D6C-5B4A-4938-8271-6F5E4D3C2B1A",
"state": "pending",
"settled": false,
"outcome": "accepted",
"ready": false,
"canSwitch": false,
"scope": "current-window"
}手写会话
进入焦点卡作答
从当前窗口进入焦点卡作答流程。是否真的可进入由运行时的 ready、canSwitch 与返回结果决定。
POST
/
writing
/
focus-enter
进入焦点卡作答
const r = await mn.api('/writing/focus-enter', {
method: 'POST',
body: { requestId, questionId, carrier: 'focus', confirm: true }
});
if (r.error) mn.log(r.error.code);
{
"schemaVersion": 1,
"bridgeApiVersion": "0.91",
"requestId": "9F8E7D6C-5B4A-4938-8271-6F5E4D3C2B1A",
"state": "pending",
"settled": false,
"outcome": "accepted",
"ready": false,
"canSwitch": false,
"scope": "current-window"
}请求体
application/json
响应
转场结果。可能还有未列出的字段。
作答转场结果。看 settled、outcome、ready 与 canSwitch,不要只看 HTTP 状态码。