Draw a custom shape
generate_shapeDraw 1–4 custom SVG outline shapes from a plain-language description for notes or diagrams, returning candidates to preview or apply.
Instructions
Draw custom outlines for notes from a description, such as a rocket or a speech bubble.
Draw shapes. Draw 1 to 4 outlines for notes from a description ("a rocket", "a speech bubble with the tail on the left"), using the AI feature shape (counted like other AI use). Each candidate is one checked SVG path: shapes.apply takes its candidateId (good for 30 days), and an applyOperations update_nodes or add_nodes plan takes {name, d, fillRule} as the shape. The same description again returns the same candidates at no cost unless fresh is true. At most 20 drawings per person per hour.
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": {
"describe": "<describe>"
},
"name": "generate_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | save (the default) writes; preview returns what would change and saves nothing. The response says which happened. | save |
| count | No | ||
| fresh | No | Draw new ones instead of returning the last ones for this description. | |
| confirm | No | The confirmation id from a confirmation_required result, once the person agreed. | |
| describe | Yes | The shape, in plain words. | |
| idempotencyKey | No | Send with confirm: the idempotencyKey from the confirmation_required result. |