Project summary
project_summarySummarize one Overleaf project into structured file counts, likely main document, section count, and pending local work to orient at the start of a task.
Instructions
Summarize one project in a single structured result (file counts by kind, the likely main document and its section count, pending local work) to orient at the start of a task. Use list_files for every path, list_sections for a document's outline, and project_status for commit-level sync state. mainFile is a guess: main.tex, paper.tex, manuscript.tex, root.tex, thesis.tex or article.tex at the root, otherwise the shallowest .tex file, so check it for \begin{document} before relying on it. Pulls from Overleaf first; if that pull conflicts with unpushed local work, it fails and keeps the work. project can name any project the default token reaches, registered or not; the first call on a project clones it, so it is slower than later calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Which project to use: its Overleaf address, its 24-character id, or a registered project name. Omit to use the default project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | The first ten file paths, sorted. Call list_files for all of them. | |
| mainFile | Yes | Best guess at the root document, from conventional names and content; null when the project has no .tex file. Verify before relying on it. | |
| categories | Yes | File counts by kind, keyed by category. A category with no files is absent rather than zero. | |
| totalFiles | Yes | Files in the project: tracked files plus local files not yet pushed. | |
| localChanges | Yes | git diff --stat for edits not yet pushed to Overleaf; empty string when there are none. | |
| trackedFiles | Yes | Files Overleaf already has. | |
| totalSections | Yes | Sectioning commands in mainFile only, not across every .tex file. 0 when mainFile is null. | |
| untrackedFiles | Yes | Files created locally that Overleaf does not have yet, excluding ignored build artifacts. | |
| sectionCountScope | Yes | States what totalSections counted, so the number is not read as a project-wide total. |