Convert Remote URL Document
convert_urlDownload a public HTTPS file (with connect-time IP pinning, redirect, and size limits) and convert via TweekIT.
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": {
"url": "<url>",
"outfmt": "<outfmt>"
},
"name": "convert_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | No | Left crop coordinate in source pixels. | |
| x2 | No | Right crop coordinate in source pixels. | |
| y1 | No | Top crop coordinate in source pixels. | |
| y2 | No | Bottom crop coordinate in source pixels. | |
| url | Yes | Public HTTPS download URL for the source document or image. | |
| page | No | Page number to convert for multi-page inputs. | |
| alpha | No | Preserve alpha transparency when producing raster formats. | |
| inext | No | Override for the detected input extension (e.g., pdf). | |
| width | No | Optional pixel width for the converted output. | |
| height | No | Optional pixel height for the converted output. | |
| outfmt | Yes | Requested output format to send as Fmt. | |
| bgColor | No | Background color (hex RGB) to composite behind transparent pixels. | |
| noRasterize | No | Forward to TweekIT to disable rasterization when supported. | |
| fetchHeaders | No | Optional allowlisted non-credential HTTP headers (Accept, Accept-Language, Cache-Control, If-Modified-Since, If-None-Match, Range, User-Agent). |