clean_html_tool
Strips scripts and styles from HTML, optionally filtering to allowed tags, to yield sanitized content.
Instructions
Cleans HTML by removing scripts, styles, and optionally limiting to allowed tags.
Args: html: HTML content to clean allowed_tags: List of allowed tags (None = all tags except script/style)
Returns: Dictionary with cleaned HTML
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": "clean_html_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | ||
| allowed_tags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||