Documentation Index
Fetch the complete documentation index at: https://mintlify.com/steerlabs/opensteer/llms.txt
Use this file to discover all available pages before exploring further.
Method Signature
Parameters
You can pass either a string instruction or an options object:String Parameter
Options Object
Natural language instruction describing the task to complete. Must be a non-empty string.
Maximum number of actions the agent can take. Must be a positive integer. Prevents infinite loops and controls execution cost.
When
true, displays a red cursor overlay at the action coordinates during execution. Useful for debugging and demonstrations.Return Type
Returns aPromise<OpensteerAgentResult> with the following fields:
Whether the agent execution completed without errors.
false indicates a failure (API error, invalid action, etc.).Whether the agent finished the task successfully.
false when max steps reached before completion.Human-readable message describing the result. Contains completion message or error details.
Array of actions taken by the agent during execution. Each action includes type, coordinates, reasoning, and metadata.
Token and time usage statistics for the execution.
The provider used for execution:
'openai', 'anthropic', or 'google'.Full model name in
provider/model format (e.g., 'openai/computer-use-preview').Action Types
Each action in theactions array includes:
Action type:
'click', 'type', 'scroll', 'navigate', 'wait', 'screenshot', 'finish'Agent’s reasoning for taking this action.
X coordinate for click actions.
Y coordinate for click actions.
Text input for type actions.
Horizontal scroll delta.
Vertical scroll delta.
URL for navigate actions.
Wait duration in milliseconds.
Examples
Basic Usage
With Options
Error Handling
Analyzing Actions
Notes
- Agent execution is slower and more expensive than direct actions
- Always set appropriate
maxStepsto prevent runaway execution - Check both
successandcompletedflags in the result - The
usagefield may be undefined depending on the provider - Actions are executed sequentially with
waitBetweenActionsMsdelay between them - The agent cannot be executed concurrently - only one execution at a time per agent instance