magic-glyphs
v0.11.2Animated icons with sound: add any format, switch from Lucide, pick sounds, animate your logo.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_icons Search icons
Search the Magic Glyphs animated icon set by keyword. Returns icon names with category and tags, best match first. Use this before get_icon to find the right name.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words describing the icon, e.g. "shopping cart" or "delete" |
category | string | Limit to one category; see list_categories |
limit | integer | Maximum results, default 20 |
list_categories List categories
List the icon categories with how many icons each has.
get_icon Get icon
Get one icon ready to use. format: "html" (custom element tag, needs the magic-glyphs script on the page), "react" or "vue" (component file source, needs the magic-glyphs npm package), "svg" (static SVG markup, no animation), "lottie" (animated Lottie JSON for iOS, Android, Windows, macOS and Flutter), "json" (raw icon data). Returns the suggested file name and the content.
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact icon name from search_icons |
color | string | Hex colour for svg and lottie output |
format | string | Default "html" |
secondary | string | Hex duotone fill colour |
size | number | Pixel size for svg and html |
style | string | Default "outline" |
list_sounds List sounds
List the built-in icon sounds by family, and how to change an icon's sound or give it your own audio file or designed sound. Use it when the user wants a different or custom sound.
| Parameter | Type | Description |
|---|---|---|
family | string | Only one family, e.g. "alerts" or "game" |
usage_guide Usage guide
How to install and use Magic Glyphs in a given kind of project.
| Parameter | Type | Description |
|---|---|---|
platform * | string | The project type |
preview_icon Preview an icon's animation
See how an icon moves: returns one picture with frames of its animation from start to finish, left to right. Use it to check an icon before suggesting it, or to show the user an icon made with make_icon. Works for library icons the user can use and for icons made with make_icon.
| Parameter | Type | Description |
|---|---|---|
name * | string | Icon name |
color | string | Hex colour, default near-black |
frames | integer | How many frames, default 8 |
style | string | Default "outline" |
icon_parts Show the parts of a logo or drawing
First step of animating the user's own logo or drawing. Reads an SVG (markup or file) or a PNG file, splits it into parts the way the icon maker does, and returns a picture with each part in its own colour plus a numbered list (size, position, holes). Use the part numbers with make_icon to give parts their own motion, e.g. "the outer star bounces, the small star spins". A shape with a hole in it is one part; only separately drawn shapes can move on their own.
| Parameter | Type | Description |
|---|---|---|
file | string | Path to an .svg or .png file |
svg | string | SVG markup |
make_icon Animate a logo or drawing (icon maker)
Turn the user's own SVG or PNG into an animated icon with sound, like the icon maker at magicglyphs.com/maker. Give a motion for the whole thing and, optionally, a different motion or a start delay per part (part numbers from icon_parts). Saves the icon as JSON in the project (magic-glyphs-icons/ or the MAGIC_GLYPHS_CUSTOM folder) so get_icon, add_icons and the CLI can use it by name, and returns a preview and ready code. Motions: pop (grows a little and springs back), bounce (jumps up and lands with a squash), drop (falls in from above and lands), wiggle (rocks left and right), swing (swings…
| Parameter | Type | Description |
|---|---|---|
name * | string | Lowercase name with dashes, e.g. "acme-logo" |
details | array | Parts that are small inner marks (an eye, a dot), kept as lines in the solid style |
feel | string | |
file | string | Path to an .svg or .png file |
format | string | Code to return, default "react" |
mode | string | auto keeps filled shapes filled and lines as lines |
motion | string | Motion for every part not given its own. Default "pop" |
parts | array | |
save_to | string | Folder to save the icon JSON in |
sound | string | Sound name (see list_sounds or suggest_sounds). Default: the first motion's own sound |
strength | number | How far it moves, 1 = normal |
svg | string | SVG markup |
tags | string |
migrate_icons Switch from another icon set
Move a project from Lucide, Heroicons, react-icons, Font Awesome, Material (MUI), Tabler, Phosphor, Feather, Radix or Iconoir to Magic Glyphs. Finds the icon imports, matches each icon to a Magic Glyphs icon, and rewrites React and Vue code to <MagicGlyph name="..." />. Give code (returns the rewritten code), a file, or a folder (scans the project). With write: true it changes the files; without, it only reports the plan. Icons with no good match are left as they are.
| Parameter | Type | Description |
|---|---|---|
code | string | Source code of one file |
file | string | |
folder | string | Project folder to scan |
write | boolean | Change the files. Default false: report only |
icons_for_ui Icons and sounds for a whole screen
Give a component, page or screen (code or a file) and get an icon and a sound for each button, link, menu item and labelled control, chosen for what it does (delete, send, checkout, sign out...). Use it to add icons to a page in one go.
| Parameter | Type | Description |
|---|---|---|
code | string | |
file | string |
suggest_sounds Suggest sounds for an action
Sounds for what an interface does, e.g. "payment failed", "added to cart", "message sent", "toggle dark mode". Returns a few sounds with why each fits.
| Parameter | Type | Description |
|---|---|---|
purpose * | string | What happens, in a few words |
add_icons Add icon files to the project
Write icon files into the project, in any format: react, vue, html, svg, lottie, json, gif, apng, webm, mp4, wav, spritesheet, and native: react-native, swiftui, compose, flutter, winui, maui, avalonia, qml, godot, unity, compose-multiplatform, rust. React and Vue come out in TypeScript when the project has a tsconfig.json. Use names from search_icons or icons made with make_icon.
| Parameter | Type | Description |
|---|---|---|
format * | string | |
names * | array | |
background | string | |
color | string | |
out | string | Folder to write to, e.g. "src/icons". Default "magic-glyphs" |
project | string | Project folder, default the current one |
size | number | |
style | string |
licence_status Licence status
Which Magic Glyphs plan this computer has, whether paid icons and the icon maker are available, and what to do if not. Use it when a paid icon will not load.