latexmk_clean
Remove LaTeX build artifacts from a directory using latexmk. Cleans auxiliary files only, or also output files like PDF/DVI/PS when clean_all is enabled.
Instructions
Clean LaTeX build artifacts in a directory using latexmk -c (auxiliary files only) or latexmk -C (auxiliary + output files).
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": {
"working_dir": "<working_dir>"
},
"name": "latexmk_clean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_name | No | Specific job name (base filename without extension). Cleans all if omitted. | |
| clean_all | No | If true, uses -C to also remove output files (PDF/DVI/PS). If false, uses -c for auxiliary files only. | |
| working_dir | Yes | Directory containing the LaTeX build artifacts |