Map the concepts
Submit a first task
PREDEV_API_KEY in your environment first. Save the returned id, then retrieve the run. Wait for terminal batch status and inspect every task’s status; a completed batch can contain failed tasks.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Translate a locally managed browser workflow into pre.dev tasks and results.
| Existing workflow | pre.dev equivalent |
|---|---|
| Launch a browser and choose a starting page | Set the task’s url |
| Describe the agent’s goal | Set instruction and optional successCondition |
| Parse output into a model | Supply an output JSON Schema |
| Run several independent jobs | Put tasks in one array and request concurrency |
| Limit steps or wall time | Set maxSteps and maxDurationSeconds per task |
| Track a long-running job | Submit async: true, persist the ID, and poll or attach to SSE |
| Inspect the browser | Request available events, screenshots, or the live browser URL |
curl --fail-with-body https://api.pre.dev/browser-agent \
-H "Authorization: Bearer $PREDEV_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"tasks": [{
"url": "https://example.com",
"instruction": "Read the page title",
"mode": "extract",
"maxSteps": 5,
"maxDurationSeconds": 30,
"output": {
"type": "object",
"properties": {"title": {"type": "string"}},
"required": ["title"]
}
}],
"async": true
}'
PREDEV_API_KEY in your environment first. Save the returned id, then retrieve the run. Wait for terminal batch status and inspect every task’s status; a completed batch can contain failed tasks.
Was this page helpful?
