save_content_as_markdown
Save web page content as a markdown file by extracting text or HTML, targeting specific elements with CSS selectors and customizing output formatting.
Instructions
Extract page content and save it as a formatted markdown file
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": {
"filePath": "<filePath>"
},
"name": "save_content_as_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path where the markdown file should be saved (must end with .md) | |
| selector | No | Optional CSS selector to extract content from specific element | |
| contentType | No | Type of content to extract and convert | text |
| formatOptions | No | Options for markdown formatting |