magic-glyphs

v0.11.2
io.github.lewisjohnvillamor/magic-glyphs Checked 5 hours ago Published 16 hours ago

Animated 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.

ParameterTypeDescription
query *stringWords describing the icon, e.g. "shopping cart" or "delete"
categorystringLimit to one category; see list_categories
limitintegerMaximum 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.

ParameterTypeDescription
name *stringExact icon name from search_icons
colorstringHex colour for svg and lottie output
formatstringDefault "html"
secondarystringHex duotone fill colour
sizenumberPixel size for svg and html
stylestringDefault "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.

ParameterTypeDescription
familystringOnly one family, e.g. "alerts" or "game"

usage_guide Usage guide

How to install and use Magic Glyphs in a given kind of project.

ParameterTypeDescription
platform *stringThe 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.

ParameterTypeDescription
name *stringIcon name
colorstringHex colour, default near-black
framesintegerHow many frames, default 8
stylestringDefault "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.

ParameterTypeDescription
filestringPath to an .svg or .png file
svgstringSVG 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…

ParameterTypeDescription
name *stringLowercase name with dashes, e.g. "acme-logo"
detailsarrayParts that are small inner marks (an eye, a dot), kept as lines in the solid style
feelstring
filestringPath to an .svg or .png file
formatstringCode to return, default "react"
modestringauto keeps filled shapes filled and lines as lines
motionstringMotion for every part not given its own. Default "pop"
partsarray
save_tostringFolder to save the icon JSON in
soundstringSound name (see list_sounds or suggest_sounds). Default: the first motion's own sound
strengthnumberHow far it moves, 1 = normal
svgstringSVG markup
tagsstring

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.

ParameterTypeDescription
codestringSource code of one file
filestring
folderstringProject folder to scan
writebooleanChange 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.

ParameterTypeDescription
codestring
filestring

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.

ParameterTypeDescription
purpose *stringWhat 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.

ParameterTypeDescription
format *string
names *array
backgroundstring
colorstring
outstringFolder to write to, e.g. "src/icons". Default "magic-glyphs"
projectstringProject folder, default the current one
sizenumber
stylestring

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.