{
"type": "function",
"function": {
"name": "linkup_fetch",
"description": "Fetches a URL and returns clean LLM-ready markdown. Supports HTML pages up to 20 MB and PDF pages up to 100 MB. Handles JavaScript-rendered HTML pages when renderJs is true. Use mode=pro for hard-to-retrieve pages. Use whenever the URL is already known.",
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL to fetch. Must be a valid HTTP/HTTPS URL pointing to an HTML or PDF page."
},
"mode": {
"type": "string",
"enum": ["standard", "pro"],
"description": "Retrieval mode. Use standard for regular pages. pro delivers significantly higher success rates on hard-to-retrieve pages.",
"default": "standard"
},
"renderJs": {
"type": "boolean",
"description": "Render the page's JavaScript before extraction. Default false. For agentic pipelines, set to true by default to ensure the full page content is extracted; many modern sites require it. Set to false only after the specific site has been confirmed to render server-side.",
"default": false
},
"includeRawHtml": {
"type": "boolean",
"description": "Return the raw HTML alongside the markdown. Default false. Set to true for workflows that need full page HTML, or when complex structure (tables, custom elements) is erased during markdown conversion.",
"default": false
},
"extractImages": {
"type": "boolean",
"description": "Extract image URLs alongside the markdown. Default false. Set to true for workflows that consume images (product photos, charts, recipe images).",
"default": false
}
},
"required": ["url"]
}
}
}