render_preview
Generate PNG preview images of HWP/HWPX document pages using Playwright/Chromium. Specify input path, output path, dimensions, and format.
Instructions
Render page PNG previews via python-hwpx + Playwright/Chromium (render extra).
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": {
"path": "<path>",
"out_path": "<out_path>"
},
"name": "render_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| width | No | ||
| format | No | png | |
| height | No | ||
| out_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |