formatResult
Convert scraped data into structured formats like markdown, HTML, or JSON. Save outputs to a specified file or default directory, with optional image inclusion for flexible content formatting.
Instructions
Format scraped data into different structured formats (markdown, HTML, JSON)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | Yes | The scraped data to format | |
format | Yes | The format to convert the data to | |
includeImages | No | Whether to include images in the formatted output (default: true) | |
output | No | File path to save the formatted result. If not provided, will use the default directory. |
Input Schema (JSON Schema)
{
"properties": {
"data": {
"description": "The scraped data to format",
"type": "object"
},
"format": {
"description": "The format to convert the data to",
"enum": [
"markdown",
"html",
"json"
],
"type": "string"
},
"includeImages": {
"description": "Whether to include images in the formatted output (default: true)",
"type": "boolean"
},
"output": {
"description": "File path to save the formatted result. If not provided, will use the default directory.",
"type": "string"
}
},
"required": [
"data",
"format"
],
"type": "object"
}