drain_journal
Clears the auto-journaling staging buffer and returns deduplicated file paths touched during the run, along with raw breadcrumb count. Atomically claims and removes the staging file.
Instructions
Drain the auto-journaling staging buffer (.squad/pending-journal.jsonl) and return the de-duplicated set of file paths touched during the run, plus the raw breadcrumb count. No-op (returns empty) when .squad.yaml journaling is not opt-in. Side-effecting — atomically claims and clears the staging file. The squad skill calls this once in Phase 10 before the terminal record_run, folding touched_paths into the RunRecord.
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": {
"workspace_root": "<workspace_root>"
},
"name": "drain_journal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_root | Yes |