MCP ToolsSelection & Context
get_editor_state
Return a full snapshot of the MCP server's current state — workspace, selection, and sketch summaries.
Input Schema
No parameters.
Output Shape
{
"hasWorkspace": true,
"workspace": {
"id": "typography-explorations",
"title": "Typography Explorations",
"path": "/absolute/path/to/workspace.genart-workspace",
"sketchCount": 4,
"viewport": { "x": 1300, "y": 1300, "zoom": 0.4 },
"groups": []
},
"selection": ["noise-grid"],
"sketches": [
{
"id": "noise-grid",
"title": "Noise Grid",
"renderer": "p5",
"canvas": { "width": 1200, "height": 1200 },
"parameterCount": 3,
"colorCount": 2,
"seed": 42
}
]
}When no workspace is open:
{
"hasWorkspace": false,
"workspace": null,
"selection": [],
"sketches": []
}Side Effects
None. Read-only.
Error Cases
None — always succeeds (returns empty state if no workspace is open).
Golden Path Example
Request:
{}Response: (as shown in Output Shape above)