ocg_manager
List and inspect optional content groups (layers) in PDF files. Use the 'list' action to view layer names; the 'toggle' action is not yet supported.
Instructions
Inspect Optional Content Groups (layers); changing visibility is not yet available.
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": {
"file": "<file>",
"action": "<action>"
},
"name": "ocg_manager"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF file | |
| layer | No | Layer name to toggle (required for "toggle" action) | |
| action | Yes | "list" = show layers; "toggle" returns an unavailable result | |
| output_name | No | Output file path (defaults to same dir with suffix) |