Context search
Read local search with filter-bound keyset cursors; no Cloud connection.
op_sys_context_searchOn this page
Use this capability
op-sys --output json tools call op_sys_context_search \ --arguments '{"query":"<query>"}'Request template: replace placeholder identities and supply complete contract-specific objects before use. Required arguments are shown; optional arguments are listed below. MCP requests assume an initialized connection.
Parameters
Arguments are a JSON object. The published schema does not permit unknown top-level fields. Native record payloads and structured arguments are JSON values, not JSON-encoded strings.
entity_idstringOptionalentity_typestringOptionalevent_typestringOptionalworkflowstringOptionalworkflow_versionstringOptionalactorstringOptionalCooperative local actor. This does not change the authenticated hosted principal.
since_atstringOptionalcursorstringOptionalOpaque continuation from the prior page. Preserve the same query context and filters.
limitintegerOptionalminimum: 1
maximum: 1000
querystringRequiredmax_text_charsintegerOptionalminimum: 1000
maximum: 50000
Complete input JSON Schema
{ "type": "object", "properties": { "entity_id": { "type": "string" }, "entity_type": { "type": "string" }, "event_type": { "type": "string" }, "workflow": { "type": "string" }, "workflow_version": { "type": "string" }, "actor": { "type": "string" }, "since_at": { "type": "string" }, "cursor": { "type": "string" }, "limit": { "type": "integer", "minimum": 1, "maximum": 1000 }, "query": { "type": "string" }, "max_text_chars": { "type": "integer", "minimum": 1000, "maximum": 50000 } }, "required": [ "query" ], "additionalProperties": false}Behavior & authority
Local event queries use the selected private state root. Cloud queries use tenant credentials, scopes and payload policy. This event surface is distinct from generic record collections.
Rules shared by event queries & context operations
- Context search ranks retained event text; it does not automatically reason over your organization.
- Local and Cloud continuation formats are independent. Keep filters, scope and effective limit stable; never reuse a cursor across scopes.
- Metadata is the default for Cloud payload selection. Full payloads require the relevant raw-content permission.
Response
Returns the native query or diagnostic payload. See the event-query and output manuals for field semantics.
CLI tools/call result: payload.tool.result. Response envelopes across CLI, SDK and MCP ↗
The runtime does not publish a standalone response JSON Schema for this operation. Use the response description and linked output manual; the downloadable input schema is not a response contract.
Errors & retries
This operation uses the shared runtime error contract; no exhaustive operation-specific reason list is published.
For an uncertain write, preserve the original request and retry identity. On conflict, inspect current state before deciding what to change.