agent.info
Read the device and screen state, and write to the automation logs.
log
Signature
log(message: string): Promise<void>Writes a message to the automation logs (visible in out-of-steps + live control).
| Parameter | Type | Description |
|---|---|---|
message | string | The message to log. |
Returns Promise<void> — Resolves once written.
Example
await agent.info.log("Reached the signup screen");screenshot
Signature
screenshot(): Promise<string>Captures the current screen as a base64-encoded PNG.
Returns Promise<string> — The base64 PNG (no data-URI prefix).
screenText
Signature
screenText(): Promise<string>Returns the visible text content of the current screen.
Returns Promise<string> — The concatenated on-screen text.