Convert Base64 Document
convertConvert a base64-encoded document payload with TweekIT (Cloud CGN or On-Premises Miner Renderery).
Credentials are read securely from TWEEKIT_API_KEY / TWEEKIT_API_SECRET environment
variables or HTTP ApiKey / ApiSecret headers. Set TWEEKIT_API_BASE_URL=http://127.0.0.1:16377/api/image/
and TWEEKIT_LOCAL_ONLY=1 for air-gapped localhost Miner Renderery processing.
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": {
"inext": "<inext>",
"outfmt": "<outfmt>",
"blob": "<blob>"
},
"name": "convert"
}
}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. | |
| blob | Yes | Base64 encoded document payload (DocData). | |
| page | No | Page number to convert for multi-page inputs. | |
| alpha | No | Preserve alpha transparency when producing raster formats. | |
| inext | Yes | Input file extension (e.g., pdf, docx, png). | |
| 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. |