restyle_ascii
Re-skin an existing ASCII drawing with a different character palette by remapping glyphs to matching-density characters, blocks, braille, or custom substitutions while preserving the picture.
Instructions
Re-skin an existing ASCII drawing with a different character palette. Drop in text (or a path to a .txt, or use the current canvas) and it swaps every glyph for the matching-darkness character in a target ramp — turning #%@ art into shade blocks (░▒▓█), braille tone, or any custom ramp, while keeping the picture. Or give an explicit map of char->char substitutions for full control. The result replaces the canvas so you can render or save it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "restyle_ascii"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map | No | Explicit source-char -> target-char substitutions. When given, replaces the density remap. | |
| path | No | Path to a .txt file to restyle. Used when `text` is omitted. | |
| ramp | No | Custom target ramp, empty -> full ink. Overrides `ramp_preset`. | |
| text | No | The ASCII art to restyle. If omitted, uses `path`, else the current canvas. | |
| invert | No | Flip light<->heavy for drawn glyphs; background spaces stay blank. | |
| ramp_preset | No | Target palette: 'blocks' = ░▒▓█, 'braille' = fine tone, 'classic'/'jp2a' = density letters. Ignored if `ramp` or `map` is given. | blocks |