chat
Submit frontend response
Submits a response from the frontend after receiving a frontend_request event via SSE
post/api/mcp/frontend-response
Request
- Base URL: https://localhost:8080
- URL: https://localhost:8080/api/mcp/frontend-response
- Auth: none declared
Request body
Example request
{
"requestId": "req_123456",
"success": true,
"data": {
"applied": 1,
"debugContext": {
"platform": "windows",
"isOnline": false,
"documentState": {
"isEmpty": false,
"characterCount": 5000,
"paragraphCount": 20
},
"trackChanges": {
"enabled": true,
"canEnable": true
},
"timing": {
"startTime": 1706000000000,
"endTime": 1706000001000,
"durationMs": 1000
}
}
},
"error": "Request failed",
"debugContext": {
"platform": "windows",
"isOnline": false,
"documentState": {
"isEmpty": false,
"characterCount": 5000,
"paragraphCount": 20
},
"trackChanges": {
"enabled": true,
"canEnable": true
},
"timing": {
"startTime": 1706000000000,
"endTime": 1706000001000,
"durationMs": 1000
},
"errorDetails": {
"code": "OPERATION_FAILED",
"message": "Insert failed",
"operationAttempted": "insertText at END"
}
}
}Response
Frontend response received successfully
Example response
{
"success": true,
"message": "Frontend response received and processed"
}Changes
No recorded changes to this operation across all 1 revision of this API.