Set comment
set_commentUpdate an existing comment in a Scratch project by ID, changing its text, position, size, minimized state, or attached block. Only specified fields are modified.
Instructions
Update an existing comment on a target by id: its text, position, size, minimized state, or the blockId it is attached to (pass an empty string or null to detach it). Only the fields you pass change.
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": {
"target": "<target>",
"id": "<id>"
},
"name": "set_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Canvas X position. | |
| y | No | Canvas Y position. | |
| id | Yes | The comment id (from `list_comments`). | |
| text | No | New comment text. | |
| width | No | Box width in pixels. | |
| height | No | Box height in pixels. | |
| target | Yes | Sprite name, or "Stage". | |
| blockId | No | Block id to attach to, or null/"" to detach. | |
| minimized | No | Whether the comment is collapsed to its title bar. |