Project Snapshot
project.snapshotRetrieve local project context: git state, language, package manager, and file tree. Use this before editing a project.
Instructions
Get local project context: git state, language, package manager, and a bounded file tree. Use this before editing a project.
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": {
"path": "<path>"
},
"name": "project.snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the project directory | |
| maxDepth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| branch | Yes | ||
| isGitRepo | Yes | ||
| headCommit | No | ||
| isDirty | Yes | ||
| entries | Yes | ||
| language | No | ||
| packageManager | No | ||
| fileTree | Yes | ||
| totalFiles | Yes | ||
| totalLines | Yes |