Draw on Canvas
javafx_draw_canvasDraws rectangles, circles, lines, and text onto the active off-screen canvas using coordinates, colors, and dimensions to render JavaFX graphics.
Instructions
Draw shapes and primitives onto the active off-screen canvas.
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": {
"shape": "<shape>",
"x": "<x>",
"y": "<y>"
},
"name": "javafx_draw_canvas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate | |
| y | Yes | Y coordinate | |
| x2 | No | Line end X coordinate | |
| y2 | No | Line end Y coordinate | |
| text | No | Text content | |
| color | No | Color name or hex | |
| shape | Yes | Shape: rectangle, circle, line, text | |
| width | No | Width (default: 50) | |
| height | No | Height (default: 50) |