Get canvas selection
get_selectionRead what the user has selected on the project's canvas in Mapples Creator, by project UUID. context.selection names the screen or component (container: entity, id, uuid, name) and the selected elements (nodes: sid, type, label) — sid is the $sid the element carries in the synced code (null, or starting c_, while it is not saved in the Creator yet); an empty nodes list means the screen itself is selected. context is null when the Creator never shared a selection, and selection is null when nothing is selected or sharing is off. context.updatedAt says how old it is: the selection outlives a closed Creator tab, so confirm with the user before acting on an old one. Requires project:view (or the project's API key).
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": {
"project_uuid": "<project_uuid>"
},
"name": "get_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||