text_filter
Filter HTML by removing script, style, and other tags. Optionally keep specific tags like p or b, and replace removed tags with custom text.
Instructions
HTML 标签过滤:移除 script/style 与标签,可选保留指定标签,可选替换为自定义文本
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>"
},
"name": "text_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | ||
| keep_tags | No | 逗号分隔的保留标签,如 'p,b,strong' | |
| replace_with | No | 被移除标签替换成的文本(默认空格) |