LogNexus Note: Attach state as Git Note to commit
lognexus_note_attachAttach the current LogNexus state as a Git Note to an existing commit, defaulting to HEAD. Use it to backfill notes on externally created commits or repair a missing note after normal commits.
Instructions
Attach the current LogNexus state as a Git Note (refs/notes/lognexus) to a commit that already exists. Defaults to HEAD. Use when backfilling manually on commits created outside the commit engine, or repairing a missing note. Not for normal commits: lognexus_commit already attaches the note as part of the atomic operation, so attaching again is only needed when the note was lost.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"commitRef": "HEAD"
},
"name": "lognexus_note_attach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commitRef | No | Git commit reference (SHA, branch, tag or HEAD). Defaults to HEAD. |