getPDFSnapshot
Capture and download web page content as a PDF using specific page IDs. Customize output with formatting options like page orientation and background printing for precise documentation.
Instructions
获取页面的PDF快照
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": {
"pageId": "<pageId>"
},
"name": "getPDFSnapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | PDF格式(默认A4) | |
| landscape | No | 横向模式(默认false) | |
| pageId | Yes | 页面ID | |
| printBackground | No | 打印背景(默认true) |