ExecutionResource provides direct, stateless endpoints for running browser automation without saving a task first. You can scrape a page, run an agent session, or launch a headful browser in a single call. The Figranium client also exposes these as top-level shortcuts: client.scrape(), client.agent(), and client.headful().
ExecutionResource (singular) is for direct runs. For saved-task execution, see TasksResource. For execution history and live streams, see ExecutionsResource.Methods
scrape
scrape
POST /scrape. Pass a url, a selector for DOM extraction, or an extraction_script for custom parsing. You can also inject runtime variables via variables or taskVariables.scrape_by_selector.py
scrape_by_script.py
agent
agent
POST /agent. The agent navigates and interacts autonomously based on the provided input. You can supply a runId to correlate or resume a specific run.agent_run.py
headful
headful
POST /headful. Pass a starting url and optional runtime variables. This is useful when you need to interact with a live browser window or debug visually.headful_run.py
Top-level shortcuts
Figranium mirrors these methods at the client root so you can call them directly without reaching into execution:
shortcuts.py
AsyncFigranium, each shortcut is awaited the same way: result = await async_client.scrape(...).
Return type
All three methods returnExecutionResult, which includes the following fields:
For error handling, see
/sdk/python/errors. For request options such as custom headers and timeout, see /sdk/python/request-options.