Reference/Event queries & context

Cloud events query

Query compact cloud event metadata, with optional full payload mode.

op_sys_cloud_events_query
Local or configured shared serviceOptional integrationRead as Markdown ↗
On this page

Use this capability

CLI invocation · Shell
op-sys --output json tools call op_sys_cloud_events_query \  --arguments '{}'

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.

source_idstringOptional

Stable cloud source identity.

ledger_idstringOptional

Local ledger label to filter by.

namespacestringOptional

Cloud aggregation namespace.

entity_idstringOptional

Entity id filter.

entity_typestringOptional

Entity type filter.

workflowstringOptional

Workflow namespace filter.

actorstringOptional

Actor id filter.

sincestringOptional

Cloud timestamp lower bound.

payloadstringOptional

Consumer-defined JSON value validated against the selected admitted contract.

Schema default: "metadata"

Allowed: "metadata", "full"

limitintegerOptional

Schema default: 100

minimum: 1

maximum: 500

cursorstringOptional

Opaque Cloud continuation; reuse the same filters and limit. Restart explicitly after expiry or invalidation.

maxLength: 8192

Complete input JSON Schema
Complete input schema · JSON
{  "type": "object",  "properties": {    "source_id": {      "type": "string",      "description": "Stable cloud source identity."    },    "ledger_id": {      "type": "string",      "description": "Local ledger label to filter by."    },    "namespace": {      "type": "string",      "description": "Cloud aggregation namespace."    },    "entity_id": {      "type": "string",      "description": "Entity id filter."    },    "entity_type": {      "type": "string",      "description": "Entity type filter."    },    "workflow": {      "type": "string",      "description": "Workflow namespace filter."    },    "actor": {      "type": "string",      "description": "Actor id filter."    },    "since": {      "type": "string",      "description": "Cloud timestamp lower bound."    },    "payload": {      "type": "string",      "enum": [        "metadata",        "full"      ],      "default": "metadata"    },    "limit": {      "type": "integer",      "minimum": 1,      "maximum": 500,      "default": 100    },    "cursor": {      "type": "string",      "maxLength": 8192,      "description": "Opaque Cloud continuation; reuse the same filters and limit. Restart explicitly after expiry or invalidation."    }  },  "required": [],  "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.