*** title: stagehand.observe description: Observe the page and return Stagehand guidance or analysis. ------------------------------------------------------------------------ `stagehand.observe` is a browser runtime capability in the `stagehand` namespace. ## Availability * Runtime: `browser` * Kind: `agent` * Category: `agents` * Supported drivers: Stagehand ## SDK Surface * SDK path: `runtime.stagehand.observe` * Async: Yes ## HTTP Surface * Transport: `workspace.execute(...)` * Call: `stagehand.observe` * Long-running: No ## Reference Semantics * Requires refs: `page` ## Arguments | Argument | Type | Required | Description | | ------------- | -------- | -------- | ------------------------------ | | `instruction` | `string` | Yes | Observation prompt. | | `options` | `object` | No | Stagehand observation options. | ## Result * Type: `unknown` * Description: Stagehand observation result. ## SDK Example ```ts await runtime.stagehand.observe('Export the latest invoices'); ``` ## HTTP Example ```json { "runtime": "crm", "steps": [ { "call": "stagehand.observe", "args": [ "Export the latest invoices" ] } ] } ``` ## Related Capabilities * [`stagehand.act`](../agents/stagehand-act) * [`stagehand.extract`](../agents/stagehand-extract)