Skip to main content
  1. Docs
  2. Reference
  3. REST API Docs
  4. Schema
  5. PageContext

PageContext

    Describes the Pulumi Cloud page the user has the Neo pane open on. Sent on every Neo prompt request (initial creation and follow-ups) so the agent’s system prompt can reference the user’s current location. The schema is intentionally generic: path is the raw URL, params carries route path parameters extracted by the client, and kind is an optional stable label set by the route definition (in console2 via data: { pageContextKind: ... }) for cases where the agent should special-case the page. New pages flow through automatically — only routes that need stable agent treatment must declare a kind.

    Properties

    • kind string optional
      Optional stable label declared by the route, used by the agent to phrase the user’s location in its system prompt or branch on well-known pages. Examples: ‘stack-update’, ’environment’, ’neo-task’. Routes without a declared kind leave this null; the agent falls back to the path and params.
    • path string optional
      Raw URL path of the page the user is viewing (e.g. ‘/myorg/myapp/prod/updates/47’). Always populated.
    • params map[string]string optional
      Route path parameters extracted from the matched Angular route, keyed by parameter name (e.g. {‘organization’: ‘myorg’, ‘project’: ‘myapp’, ‘stack’: ‘prod’, ‘version’: ‘47’}). Empty for routes with no path parameters.