render_icons
Transform elements in HTML into elements referencing SVG icons from a local directory. Works offline without API calls.
Instructions
将模板中的 描述 替换为实际的 。纯本地操作,不调 API。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"html": "<html>",
"iconBasePath": "<iconBasePath>"
},
"name": "render_icons"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | 含 <icon> 标签的 HTML | |
| iconBasePath | Yes | 图标 SVG 目录的绝对路径 | |
| iconsRelativePath | No | 生成的 <img> 中 src 的相对路径前缀,默认 "./assets/icons/" |