Skill Builder Chat
The Skills copilot turn (SSE). Reads the screen context, routes intent, and answers, drafts a new skill, or emits one UI action.
Events: routing -> message (the reply) -> then EITHER action (a UI
command the frontend applies) OR the draft sub-stream (searching ->
knowledge -> drafting -> proposal) -> done (or error).
Cross-space when space_id is omitted.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
A copilot turn: the user's message plus the current screen context.
Response Body
application/json
application/json
curl -X POST "https://example.com/agent/skill-builder/chat" \ -H "Content-Type: application/json" \ -d '{ "message": "string" }'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}