latexmk_watch_start
Start a background LaTeX watch process that automatically recompiles your document when source files change, and returns a session ID for managing it.
Instructions
Start a background latexmk watch process (-pvc) that recompiles automatically on file changes. Returns a session_id.
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_path": "<file_path>"
},
"name": "latexmk_watch_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | pdflatex | |
| file_path | Yes | Absolute path to the root .tex file to watch | |
| working_dir | No | Working directory. Defaults to the source file directory. |