Find which PDF page each \label lands on
label_pagesReads the latest compile’s .aux file to return each label’s number and PDF page, plus total page count, enabling page-limit checks and figure-reference placement checks. Run compile first.
Instructions
Reads the .aux file of the most recent compile and returns, for every \label, its number (e.g. section or table number) and the PDF page it lands on, plus the total page count. Useful for page-limit checks ('does the Conclusion end on page 8?') and for checking that figures sit near their first reference. Call compile first.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "label_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Overleaf project id from list_projects or open_project. Opens the project if it is not already active. Pass it on every call when MCP sessions may change between calls. Writes without it only go to the project last confirmed by open_project or by a write naming it. | |
| label_prefix | No | Only labels starting with this, e.g. 'sec:' or 'tab:'. |