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 extractionScript for custom parsing. You can also inject runtime variables via variables or taskVariables.scrape_by_selector.kt
scrape_by_script.kt
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.kt
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.kt
Top-level shortcuts
Figranium mirrors these methods at the client root so you can call them directly without reaching into execution:
shortcuts.kt
Return type
All three methods returnExecutionResult<T>, which includes the following fields:
For error handling, see
/sdk/kotlin/errors. For request options such as custom headers and timeout, see /sdk/kotlin/request-options.
Related resources
Tasks
Create, save, and execute named tasks.
Executions
List, inspect, and stream execution history.
Request options
Pass custom headers and per-request timeouts.
Errors
Handle
FigraniumException responses.