ui_builder_post_comment
Say something on a design — a reply into threadId, or a new thread when it is omitted. Pin a new thread with markId (a stroke on the reference overlay), nodeId (a node in the design), or x/y in frame fractions, so the person reading it can see what you meant. The comment is attributed to your own grant; you cannot post as somebody else.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"designId": "<designId>",
"body": "<body>"
},
"name": "ui_builder_post_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Pin to a point on the frame, 0..1 across. | |
| y | No | Pin to a point on the frame, 0..1 down. | |
| body | Yes | ||
| token | No | A grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it. | |
| markId | No | Pin to a markup stroke on the reference. | |
| nodeId | No | Pin to a design node. | |
| designId | Yes | ||
| threadId | No | Reply into this thread. Omit to start one. | |
| agentName | No | Optional agent/client name shown to design viewers; self-reported. | |
| agentModel | No | Optional current model name shown to design viewers; self-reported. Omit when unknown. | |
| displayName | No | The name to show beside your actor id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||