autofigure
AutoFigure: Image to Editable DrawIO
Convert a raster figure (PNG/JPEG) into an editable .drawio file where text, arrows, and shapes are real mxCell elements, and icons are embedded as transparent PNGs using DrawIO's image style.
Available Tools
| Tool | Purpose |
|---|---|
segment_figure |
Detect icons/elements via SAM3 (fal.ai), produce samed.png + boxlib.json |
crop_remove_bg |
Crop detected regions + RMBG-2.0 background removal → transparent PNGs |
generate_drawio_template |
Multimodal LLM reconstructs the figure as DrawIO XML with gray placeholder mxCells |
replace_icons_drawio |
Embed transparent icons into drawio placeholder mxCells → final.drawio |
Legacy SVG tools (
generate_svg_template,replace_icons_svg) are also available if you need SVG output instead.
Workflow
Follow these steps in order. Each step's output feeds into the next.
More from zhihaoairobotic/clawphd
cron
Schedule reminders and recurring tasks.
49tmux
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
14diagram-gen
Generate publication-quality academic diagrams and plots from paper methodology text using optimize_input, plan_diagram, generate_image, and critique_image tools.
14weather
Get current weather and forecasts (no API key required).
13github
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
12summarize
Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).
9