fetch_as_markdown
Convert website HTML content to Markdown for easier use in documentation or workflows. Simply provide the URL and optional headers to fetch and transform the content.
Instructions
Fetch a website, convert its HTML content to Markdown, and return it.
Args:
url (str): URL of the website to fetch.
headers (Optional[dict[str, str]]): Custom headers for the request.
Returns:
FetchResponse: An object containing the Markdown content or an error message.
On success, isError is false and content contains the Markdown text.
On failure, isError is true and errorMessage contains the error details.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
headers | No | ||
url | Yes |
Input Schema (JSON Schema)
{
"properties": {
"headers": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Headers"
},
"url": {
"title": "Url",
"type": "string"
}
},
"required": [
"url"
],
"title": "fetch_as_markdownArguments",
"type": "object"
}