cos_graph_stale_files
Detect indexed files with Git commits newer than the index pass that read them, revealing stale graph entries before you trust a complete answer.
Instructions
List indexed files with a git commit newer than the index pass that read them.
Truncation carries a flag because the harness knows it truncated. Staleness carries none: the graph is complete against its own model while the model is behind the tree, so the envelope looks clean either way. Ask this before acting on a confidently complete answer.
Args: top: Max paths returned (default 100, max 5000).
Returns:
JSON envelope with stale (list), stale_count, indexed_files and
index_age_seconds. Fails with unavailable when git history cannot
be read — an empty list would read as "nothing is stale".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cos_graph_stale_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |