memory_submit
Submit outbox drafts into the repository memory directory for review, applying safe curation and lint reports while pausing for batch approval on uncertain merges or tags.
Instructions
Move outbox drafts into the repo memory dir for review. Before copying, reports graph lint (never blocking) and auto-applies the deterministic tier: exact-duplicate merges, empty-body archives, first-line title normalization, and high-confidence type/tag inference from keyword captures. Every applied action appears in the output with its undo command; pass noCurate=true to skip curation (lint still reports). D95: semantic merges, splits and uncertain type/tag inferences are one batch-confirm summary — when they exist, submit stops before writing anything and returns the summary. Show that summary to the user, then call again with either curateBatch="accept" (apply the whole batch) or curateBatch="decline" (change nothing). Never per-item approval, never silently apply the batch. Then copies the drafts in as proposed (or keeps a local approval), commits locally on the current branch, and moves the outbox originals out. Never creates a branch on its own — pass branch= only with the user's explicit approval for the full chain. Prints the push and PR commands — those need the user's explicit approval and are never run automatically. (MCP server and the open-memex submit CLI; the opencode native plugin does not expose this tool.) Unknown ids or a failed local commit abort the submit with the reason; nothing is published automatically.
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": {
"ids": "<ids>"
},
"name": "memory_submit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Outbox draft ids to submit. | |
| base | No | PR base branch override. Default: the branch the submit ran on. | |
| branch | No | Create this branch and submit onto it. If omitted, submit stays on the current branch — branches are never auto-created. Only pass this when the user explicitly approved the full chain (branch + push + PR). | |
| noCurate | No | Skip curation entirely (auto and batch); the graph lint report still runs. Default false. | |
| curateBatch | No | D95: the ONE decision for the batch-confirm tier (semantic merges, splits, uncertain type/tag inferences). When proposals exist and this is omitted, submit writes nothing and returns the summary — show it to the user, then call again with accept or decline. Never per-item approval. |