Reuse Context Package
reuse_context_packageRecord when a selected project reuses a context package in another target such as conversation, document, export, publish, report, or prompt.
Instructions
Use when: Record that the selected project reused a context package in another prompt, conversation, document, export, publish, or report target. Do not use when: a narrower tool better matches the intent, the project scope is unresolved, or the user has declined the action. Requires: authenticated API authority and an API-authorized selected Project. Effect: canonical mutation. For the same logical mutation retry, reuse the same idempotencyKey. If the payload or user intent changes, use a new key. Replay returns the first canonical result ID and version; the key never bypasses authorization or expected-version checks. Human approval: not required for this read or staging action. Then: follow typed result state; review pending proposals/drafts before any canonical apply. On failure: login_required → login; project_not_selected → list_projects/select_project; permission_denied → stop; stale_version or conflict → read current state; projection_pending → report canonical success separately and wait.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Optional UI or client action, for example copy_context. | |
| metadata | No | ||
| targetId | No | Optional external target id. | |
| projectId | No | Optional project id. Defaults to the project chosen with select_project. If omitted and no project is selected, the call is rejected with instructions to select one. | |
| sessionId | No | Optional session id. Defaults to the selected project session. | |
| clientType | No | Optional client type. Defaults to mcp. | |
| targetType | Yes | Where the package was reused. | |
| graphVersion | No | Optional graph version from the package. | |
| contextLength | No | Optional reused context character count. | |
| evidenceCount | No | Optional reused evidence count. | |
| idempotencyKey | No | Optional idempotency key for mutation replay safety. | |
| contextPackageId | Yes | Context package id returned by resume, handoff, or list_context_packages. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| status | Yes | ||
| warnings | Yes | ||
| authority | Yes | ||
| projectId | Yes | ||
| reviewUrl | Yes | ||
| idempotency | Yes | ||
| nextActions | Yes | ||
| reviewRequired | Yes | ||
| canonicalVersion | Yes | ||
| projectionStatus | Yes |