context_open
Resume or open a persistent working context for the current session. Specify a space reference to pick up prior state, while a token budget and query shape the initial context pack.
Instructions
Open or resume durable private working context for this host session.
Call at task/session start and after compaction. Supply the response's
opaque contextRef as space_ref and bindingRef as session_ref
on later calls; tenant, company, and user scope always come from
authentication. The returned pack is
bounded by token_budget (128..16384) and augments, but does not enlarge,
the model's native context window.
Args: host: Harness name, for example codex, claude_code, or chatgpt host_session_ref: Optional opaque session/thread reference from the host model: Optional active model name space_ref: Existing Context Space reference, or empty to create/resume token_budget: Maximum tokens in the initial working pack (128..16384) query: Optional current task or prompt used to rank the initial pack repository_json: Optional repository fingerprint JSON object company_ref: Optional public company handle; must be paired with project_ref project_ref: Optional public project handle resolved in authenticated scope
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| model | No | ||
| query | No | ||
| space_ref | No | ||
| company_ref | No | ||
| project_ref | No | ||
| token_budget | No | ||
| repository_json | No | {} | |
| host_session_ref | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |