Skip to content

Agent parameters

FieldTypeRequiredNotes
instructionstringyesThe natural-language task.
max_stepsnumbernoInteger step cap, max 20.
budget_usdnumbernoHard budget cap for tool work.
response_formattext | jsonnoControls the final answer payload.
json_schemaobjectconditionalRequired when response_format is json.

JSON mode

If you need machine-readable output, request response_format: "json" and provide a JSON Schema.

Structured JSON answer

```bash curl https://api.faircompany.ai/v1/crawl/agent \ -X POST \ -H "Authorization: Bearer fc_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "instruction": "Compare Notion and Confluence pricing for teams under 50 seats.", "response_format": "json", "json_schema": { "type": "object", "properties": { "winner": { "type": "string" }, "notes": { "type": "array", "items": { "type": "string" } } }, "required": ["winner", "notes"] } }' ```