summaryrefslogtreecommitdiff
path: root/src/main/index.ts
diff options
context:
space:
mode:
authorhaoyuren <13851610112@163.com>2026-03-15 19:43:02 -0500
committerhaoyuren <13851610112@163.com>2026-03-15 19:43:02 -0500
commit6d4ee5ccd5529d6d2764da73e73fac57d7bfb216 (patch)
tree302d64738e2a15229065a8ab36058fda1de1e7f9 /src/main/index.ts
parentbe240f8edd9f2cdb31b5c3b2b8d194b03e8748e0 (diff)
Add read_compiled_pdf and search_citation MCP tools
- read_compiled_pdf: returns PDF path for Claude Code to visually inspect compiled output - search_citation: search Semantic Scholar for papers, returns ready-to-use BibTeX entries - Updated CLAUDE.md template with new tool docs, workflows, and permissions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/main/index.ts')
-rw-r--r--src/main/index.ts17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/main/index.ts b/src/main/index.ts
index e83c67b..4239be5 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -864,6 +864,12 @@ You have MCP tools to interact with Overleaf. Use them proactively.
- **get_compile_warnings**: Get parsed warnings from last compile.
- **get_compile_log**: Get full raw log. Pass \`tail: N\` for last N lines only.
+### PDF
+- **read_compiled_pdf**: Get the path to the compiled PDF. After calling this, use your **Read** tool on the returned path to visually inspect the PDF. Use the \`pages\` parameter (e.g. \`"1-3"\`) to read specific pages. This lets you verify formatting, figures, tables, and layout.
+
+### Bibliography
+- **search_citation**: Search academic papers by title, topic, or author. Returns matching papers with ready-to-use BibTeX entries that can be pasted directly into a \`.bib\` file.
+
### Workflows
#### Comment Workflow
@@ -878,6 +884,13 @@ You have MCP tools to interact with Overleaf. Use them proactively.
2. Use \`compile_latex\` to compile
3. If errors: use \`get_compile_errors\` for details, fix them, recompile
4. If warnings: use \`get_compile_warnings\` to review
+5. To check visual output: use \`read_compiled_pdf\`, then Read the returned path with \`pages: "1-3"\`
+
+#### Bibliography Workflow
+1. Use \`search_citation\` with a topic or paper title to find references
+2. Copy the BibTeX entry into the \`.bib\` file
+3. Use \`\\cite{key}\` in the \`.tex\` file
+4. Compile to verify the citation renders correctly
## Workspace
@@ -903,7 +916,9 @@ The \`claude-workspace/\` directory is your private scratch space. It is **not s
'mcp__lattex__compile_latex',
'mcp__lattex__get_compile_errors',
'mcp__lattex__get_compile_warnings',
- 'mcp__lattex__get_compile_log'
+ 'mcp__lattex__get_compile_log',
+ 'mcp__lattex__read_compiled_pdf',
+ 'mcp__lattex__search_citation'
]
}
}, null, 2))