html_to_text_tool
Converts HTML to plain text. Optionally includes link URLs for context, enabling extraction of readable content from web pages.
Instructions
Extracts plain text from HTML content.
Args: html: HTML content to convert preserve_links: Whether to preserve link URLs in output (default: False)
Returns: Dictionary with extracted text
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": "html_to_text_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | ||
| preserve_links | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||