open_svg
Opens an SVG in the browser for users to select and annotate regions, returning annotations for further editing. Supports optional source script path to update generation code.
Instructions
在浏览器中打开一个 SVG 图,供用户圈选区域写批注。
打开后应调用 wait_for_annotations 等待用户提交批注。
svg_path 必须是绝对路径。source_script 可选:该 SVG 的生成脚本路径
(如 matplotlib 的 fig_*.py);之后每批批注都会原样带回该路径,
便于判断是改 SVG 文件还是改脚本重跑。title 可选,显示在页面顶栏。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| svg_path | Yes | ||
| source_script | No |