hub_card_set
Create or update a project card from a name and digest without a local git checkout; patch individual stale lines with replace or appendLine while preserving frontmatter and Facts.
Instructions
Create or update a project card from just a name and a digest — no folder needed (unlike hub_sync). Use it to capture a project that is not a local git checkout, e.g. when harvesting a dialog. Preserves any hand-written frontmatter and Facts. To fix ONE stale line without touching the owner's framing, patch instead of replacing: replace: [{from, to}] and/or appendLine — a from that is not in the digest is an error, not a silent no-op.
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": {
"project": "<project>",
"by": "<by>"
},
"name": "hub_card_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | the function you are performing, e.g. "dev-hubd". NOT which model you are — that is read from the transcript, and many sessions share a model. NOT a queue role either: a role is a mailbox (see hub_queue_wait), this is who is at it. | |
| digest | No | the card digest: 3-6 lines of current state (replaces the whole text — omit it when patching). Enforced, not advised: a digest over the hub's limit is refused, and so is an appendLine that starts with a date — a dated line is an event and belongs in hub_report, which writes the card section AND the journal. | |
| project | Yes | project name or slug | |
| replace | No | patch: exact substrings to swap, each must occur exactly once in the current digest | |
| verbose | No | return the card path, the patches applied and the new digest; by default the reply is {ok, project, section, bytes} (plus patched: <count> and rotated when they happened) — you just wrote the text, it is not echoed back | |
| appendLine | No | patch: one line to add at the end of the current digest |