shape_text
Turns a poem or phrase into a calligram by packing its words into a builtin silhouette or an image-derived outline, so the text itself forms the picture.
Instructions
Pack a poem or phrase into a silhouette so the words themselves form the picture — a calligram. Give it text plus either a builtin shape (circle, heart, diamond, star, butterfly, triangle, tree, arrow) or an image path whose subject becomes the outline. The words trace the shape; by default the text repeats to fill it, and tall shapes like tree and arrow default to an upright silhouette (canopy + word-trunk). Set outline to wrap the figure in a crisp braille contour drawn at sub-pixel resolution while the words fill the body. This is the one-call way to make structured typographic illustrations.
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": {
"text": "<text>"
},
"name": "shape_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| path | No | Image file whose subject becomes the silhouette. Provide this or `shape`. | |
| text | Yes | The words to pour into the shape (a poem, a phrase). | |
| shape | No | A builtin silhouette. Provide this or `path`. | |
| width | No | Silhouette width in characters. | |
| height | No | Silhouette height. Defaults from the shape's natural aspect (round shapes ~width/2, tree/arrow taller). | |
| invert | No | Image mask only: treat bright cells as the subject instead of dark ones. | |
| repeat | No | Loop the text to fill the whole shape. Off = write it once, then stop. | |
| justify | No | How each row fills its span: full block-justifies words edge to edge (densest, default); center or left keep single spacing. | full |
| outline | No | Trace the silhouette's edge with fine braille dots (sub-pixel resolution) while the interior fills with text. | |
| threshold | No | Image mask only: luminance cutoff — cells darker than this are inside the shape. |