ContextCapsule
capsuleCreate, share, and manage portable project context snapshots for team handoffs, agent bootstrapping, and external collaboration. Open share links, list capsules, or audit shares.
Instructions
ContextCapsule: portable, shareable, hydrate-on-demand snapshots of project context. Use capsule when the user pastes a /c/ link or capsule token, asks for a handoff/share/team/external-agent link, wants to bootstrap a fresh agent with project state, asks for a paste-ready handoff prompt (bootstrap prompt / prompt for another LLM), wants share-token graphs, or wants to list/audit capsules. Do not use capsule for normal turn-by-turn retrieval; use context instead. Team share links are authenticated and reusable by default; external_agent/public_link/support shares are token-gated and single-use by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| capsule_id | No | ContextCapsule ID | |
| share_token | No | Existing brain_/capsule_ share token | |
| share_id | No | ContextCapsule share UUID | |
| url | No | ContextCapsule or AI Brain share URL | |
| format | No | Output format | |
| hydrate | No | Whether to fully hydrate the capsule | |
| chunk_id | No | Chunk ID for chunk action | |
| cursor_chunk_id | No | NDJSON stream cursor chunk ID | |
| audience | No | Share audience. team creates an authenticated member link; external_agent/public_link/support create token-gated links. self is valid for capsule policy but does not mint share tokens. | |
| expires_in_days | No | Share expiry in days (defaults: team=7, external_agent/public_link/support=1) | |
| multi_use | No | Allow the share to be opened multiple times until expiry. Defaults to true for team links and false for token-gated links. | |
| include_personal | No | Include personal artifacts | |
| include_code | No | Code inclusion mode | |
| redaction_level | No | Redaction level | |
| permissions | No | Permissions for the capsule/share | |
| scope | No | Capsule scope | |
| workspace_id | No | Workspace ID (UUID). | |
| project_id | No | Project ID (UUID). | |
| purpose | No | Capsule purpose | |
| name | No | Capsule/share name | |
| mode | No | Capsule mode | |
| sections | No | Explicit sections to include | |
| event_kind | No | Filter audit events by kind | |
| access_scope | No | Filter audit events by access scope | |
| limit | No | Maximum audit events or list caps | |
| offset | No | Audit result offset | |
| graph | No | Graph kind for action=graph | |
| max_uses | No | Burn-after-N-reads cap for action=share. Team links default to no max-use cap; token-gated single-use links default to max_uses=1 with a short grace window after first open. | |
| max_inline_tokens | No | Cap inline section tokens during action=create | |
| refresh_if_stale | No | Force regenerate manifest if stale |