{"mcp":"https://api.fetchfox.ai/mcp","operations":[{"name":"visit","method":"POST","path":"/api/visit","description":"Read rendered page content. Choose url or urls.","access":"account","inputSchema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":4000,"description":"Public HTTP or HTTPS URL.","format":"web-url"},"urls":{"type":"array","items":{"type":"string","minLength":1,"maxLength":4000,"description":"Public HTTP or HTTPS URL.","format":"web-url"},"minItems":1,"maxItems":5000},"include":{"type":"array","items":{"type":"string","enum":["meta","raw","html","slimHtml","markdown","text"]},"minItems":1,"maxItems":6},"delivery":{"type":"string","enum":["inline","artifact"]},"proxy":{"type":"string","enum":["none","auto","datacenter","residential"]},"detach":{"type":"boolean","description":"Return a job ID immediately. Poll get_job for completion."}},"required":[],"additionalProperties":false,"oneOf":[{"required":["url"]},{"required":["urls"]}]}},{"name":"crawl","method":"POST","path":"/api/crawl","description":"Discover links matching a pattern or a query from seed pages.","access":"account","inputSchema":{"type":"object","properties":{"startUrls":{"type":"array","items":{"type":"string","minLength":1,"maxLength":4000,"description":"Public HTTP or HTTPS URL.","format":"web-url"},"minItems":1,"maxItems":500},"pattern":{"type":"string","minLength":1,"maxLength":4000,"description":"Target URL pattern, for example https://example.org/articles/*."},"query":{"type":"string","minLength":1,"maxLength":4000,"description":"Describe the URLs to discover."},"maxVisits":{"type":"integer","minimum":1,"maximum":5000,"description":"Visit budget."},"maxDepth":{"type":"integer","minimum":0,"maximum":5,"description":"Maximum depth from a seed."},"crawlStrategy":{"type":"string","enum":["bfs","dfs","random"]},"priority":{"type":"object"},"proxy":{"type":"string","enum":["none","auto","datacenter","residential"]},"detach":{"type":"boolean","description":"Return a job ID immediately. Poll get_job for completion."}},"required":[],"additionalProperties":false}},{"name":"extract","method":"POST","path":"/api/extract","description":"Extract structured records from one URL or a batch of URLs. Lambda extraction requires an object template and explicit perPage.","access":"account","inputSchema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":4000,"description":"Public HTTP or HTTPS URL.","format":"web-url"},"urls":{"type":"array","items":{"type":"string","minLength":1,"maxLength":4000,"description":"Public HTTP or HTTPS URL.","format":"web-url"},"minItems":1,"maxItems":5000},"template":{"anyOf":[{"type":"string","minLength":1,"maxLength":4000,"description":"Describe the fields to extract."},{"type":"object","minProperties":1,"additionalProperties":{"type":"string","minLength":1,"maxLength":4000,"description":"Instructions for this field."}}]},"perPage":{"type":"string","enum":["one","many"]},"useBoost":{"type":"boolean","description":"Allow reuse of a learned extraction."},"contentTransform":{"type":"string","enum":["raw","html","slim_html","text","markdown"]},"proxy":{"type":"string","enum":["none","auto","datacenter","residential"]},"detach":{"type":"boolean","description":"Return a job ID immediately. Poll get_job for completion."},"extractExecution":{"type":"string","enum":["host","lambda"]}},"required":["template"],"additionalProperties":false,"oneOf":[{"required":["url"]},{"required":["urls"]}]}},{"name":"scrape","method":"POST","path":"/api/scrape","description":"Discover matching URLs and extract records from them in one job.","access":"account","inputSchema":{"type":"object","properties":{"startUrls":{"type":"array","items":{"type":"string","minLength":1,"maxLength":4000,"description":"Public HTTP or HTTPS URL.","format":"web-url"},"minItems":1,"maxItems":500},"pattern":{"type":"string","minLength":1,"maxLength":4000,"description":"Target URL pattern, for example https://example.org/articles/*."},"query":{"type":"string","minLength":1,"maxLength":4000,"description":"Describe the URLs to discover."},"maxVisits":{"type":"integer","minimum":1,"maximum":5000,"description":"Visit budget."},"maxDepth":{"type":"integer","minimum":0,"maximum":5,"description":"Maximum depth from a seed."},"crawlStrategy":{"type":"string","enum":["bfs","dfs","random"]},"priority":{"type":"object"},"proxy":{"type":"string","enum":["none","auto","datacenter","residential"]},"detach":{"type":"boolean","description":"Return a job ID immediately. Poll get_job for completion."},"template":{"anyOf":[{"type":"string","minLength":1,"maxLength":4000,"description":"Describe the fields to extract."},{"type":"object","minProperties":1,"additionalProperties":{"type":"string","minLength":1,"maxLength":4000,"description":"Instructions for this field."}}]},"perPage":{"type":"string","enum":["one","many"]},"useBoost":{"type":"boolean","description":"Allow reuse of a learned extraction."},"contentTransform":{"type":"string","enum":["raw","html","slim_html","text","markdown"]},"maxExtracts":{"type":"integer","minimum":1,"maximum":5000,"description":"Extraction budget."}},"required":["template"],"additionalProperties":false}},{"name":"agent","method":"POST","path":"/api/agent","description":"Run a natural-language web data task.","access":"account","inputSchema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":16000,"description":"Describe the information to find."},"urls":{"type":"array","items":{"type":"string","minLength":1,"maxLength":4000,"description":"Public HTTP or HTTPS URL.","format":"web-url"},"minItems":1,"maxItems":5000},"detach":{"type":"boolean","description":"Return a job ID immediately. Poll get_job for completion."}},"required":["prompt"],"additionalProperties":false}},{"name":"create_agent","method":"POST","path":"/api/agent/create","description":"Create a reusable agent from a task description.","access":"account","inputSchema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":16000,"description":"Describe the information to find."},"urls":{"type":"array","items":{"type":"string","minLength":1,"maxLength":4000,"description":"Public HTTP or HTTPS URL.","format":"web-url"},"minItems":1,"maxItems":5000},"detach":{"type":"boolean","description":"Return a job ID immediately. Poll get_job for completion."}},"required":["prompt"],"additionalProperties":false}},{"name":"list_agents","method":"GET","path":"/api/agents","description":"List the agents owned by your account.","access":"account","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"get_agent","method":"GET","path":"/api/agent/:id","description":"Read a saved agent and its plan.","access":"account","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"description":"Resource identifier.","pattern":"^[A-Za-z0-9_-]+$"}},"required":["id"],"additionalProperties":false}},{"name":"run_agent","method":"POST","path":"/api/agent/:id/run","description":"Run your saved agent with its named input parameters.","access":"account","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"description":"Resource identifier.","pattern":"^[A-Za-z0-9_-]+$"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string","minLength":1,"maxLength":4000,"description":"Input value"},"minItems":1,"maxItems":500}]}},"detach":{"type":"boolean","description":"Return a job ID immediately. Poll get_job for completion."}},"required":["id"],"additionalProperties":false}},{"name":"plan","method":"POST","path":"/api/plan","description":"Generate a plan for a website.","access":"account","inputSchema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":4000,"description":"Public HTTP or HTTPS URL.","format":"web-url"},"detach":{"type":"boolean","description":"Return a job ID immediately. Poll get_job for completion."}},"required":["url"],"additionalProperties":false}},{"name":"list_jobs","method":"GET","path":"/api/jobs","description":"List your top-level jobs, newest first.","access":"account","inputSchema":{"type":"object","properties":{"offset":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Zero-based offset."},"limit":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum records returned."},"types":{"type":"string","minLength":1,"maxLength":120,"description":"Comma-separated job methods, for example crawl,extract."}},"required":[],"additionalProperties":false}},{"name":"get_job","method":"GET","path":"/api/jobs/:id","description":"Read job state, results, metrics and progress.","access":"account","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"description":"Resource identifier.","pattern":"^[A-Za-z0-9_-]+$"}},"required":["id"],"additionalProperties":false}},{"name":"stop_job","method":"POST","path":"/api/jobs/:id/stop","description":"Request cancellation of your job.","access":"account","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"description":"Resource identifier.","pattern":"^[A-Za-z0-9_-]+$"}},"required":["id"],"additionalProperties":false}},{"name":"get_job_items","method":"GET","path":"/api/jobs/:id/items","description":"Read a page of extracted items for your job.","access":"account","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"description":"Resource identifier.","pattern":"^[A-Za-z0-9_-]+$"},"offset":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Zero-based offset."},"limit":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum records returned."}},"required":["id"],"additionalProperties":false}},{"name":"export_job_csv","method":"GET","path":"/api/jobs/:id/items/csv","description":"Export your job items as CSV.","access":"account","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"description":"Resource identifier.","pattern":"^[A-Za-z0-9_-]+$"}},"required":["id"],"additionalProperties":false}},{"name":"export_job_jsonl","method":"GET","path":"/api/jobs/:id/items/jsonl","description":"Export your job items as newline-delimited JSON.","access":"account","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"description":"Resource identifier.","pattern":"^[A-Za-z0-9_-]+$"}},"required":["id"],"additionalProperties":false}},{"name":"list_urls","method":"GET","path":"/api/urls","description":"List discovered URLs from your job, optionally filtered by pattern.","access":"account","inputSchema":{"type":"object","properties":{"job_id":{"type":"string","minLength":1,"maxLength":128,"description":"Resource identifier.","pattern":"^[A-Za-z0-9_-]+$"},"pattern":{"type":"string","minLength":1,"maxLength":4000,"description":"URL pattern."},"offset":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Zero-based offset."},"limit":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum records returned."}},"required":["job_id"],"additionalProperties":false}},{"name":"get_artifact","method":"GET","path":"/api/artifacts/:id","description":"Get the expiring private download URL for a raw page artifact.","access":"account","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"description":"Resource identifier.","pattern":"^[A-Za-z0-9_-]+$"}},"required":["id"],"additionalProperties":false}},{"name":"pdf_text","method":"POST","path":"/api/pdf/text","description":"Read text and metadata from a public PDF.","access":"account","inputSchema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":4000,"description":"Public HTTP or HTTPS URL.","format":"web-url"}},"required":["url"],"additionalProperties":false}},{"name":"get_pdf_text","method":"GET","path":"/api/pdf/text","description":"Read a public PDF as plain text.","access":"account","inputSchema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":4000,"description":"Public HTTP or HTTPS URL.","format":"web-url"}},"required":["url"],"additionalProperties":false}},{"name":"summarize","method":"POST","path":"/api/summarize","description":"Summarize an object using an account-scoped cache key.","access":"account","inputSchema":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":128,"description":"Your cache identifier."},"object":{"type":"object"}},"required":["key","object"],"additionalProperties":false}},{"name":"record_event","method":"POST","path":"/api/events/record","description":"Record a named analytics event. Use props.test for test traffic.","access":"account","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128,"description":"Event name."},"tid":{"type":"string","minLength":1,"maxLength":128,"description":"Visitor tracking ID."},"props":{"type":"object"}},"required":["name"],"additionalProperties":false}},{"name":"get_version","method":"GET","path":"/api/version","description":"Read the worker revision, or the API revision with local=true.","access":"public","inputSchema":{"type":"object","properties":{"local":{"type":"boolean","description":"Read the HTTP API revision."}},"required":[],"additionalProperties":false}},{"name":"get_token","method":"GET","path":"/api/token","description":"Read public FetchFox organization and token quote information.","access":"public","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"get_contracts","method":"GET","path":"/api/contracts/:chainId","description":"Read the contract addresses and ABIs for a supported chain.","access":"public","inputSchema":{"type":"object","properties":{"chainId":{"type":"integer","enum":[8453,31337]}},"required":["chainId"],"additionalProperties":false}},{"name":"get_user","method":"GET","path":"/api/user","description":"Read your account profile and billing summary.","access":"account","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"rotate_api_key","method":"POST","path":"/api/user/rotate-api-key","description":"Replace your current API key. Save the returned key and reconnect your clients.","access":"account","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"get_credit_balance","method":"GET","path":"/api/credits/balance","description":"Read purchased, consumed and remaining credits.","access":"account","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"list_transactions","method":"GET","path":"/api/credits/transactions","description":"List your credit transactions.","access":"account","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"get_invoice","method":"GET","path":"/api/credits/transactions/:id/invoice","description":"Read the HTML invoice for one of your transactions.","access":"account","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"description":"Resource identifier.","pattern":"^[A-Za-z0-9_-]+$"}},"required":["id"],"additionalProperties":false}},{"name":"purchase_credits","method":"POST","path":"/api/credits/purchase","description":"Charge your saved payment method for credits.","access":"account","inputSchema":{"type":"object","properties":{"amount":{"type":"number","exclusiveMinimum":0,"description":"Amount in US dollars."}},"required":["amount"],"additionalProperties":false}},{"name":"consume_credits","method":"POST","path":"/api/credits/consume","description":"Debit a positive number of credits from your balance.","access":"account","inputSchema":{"type":"object","properties":{"amount":{"type":"integer","minimum":1,"maximum":2147483647,"description":"Credits to consume (1,000 credits = $1)."}},"required":["amount"],"additionalProperties":false}},{"name":"set_auto_reload","method":"POST","path":"/api/credits/auto-reload","description":"Configure automatic charges when the balance falls below the floor.","access":"account","inputSchema":{"type":"object","properties":{"autoReloadEnabled":{"type":"boolean","description":"Enable automatic purchases."},"autoReloadFloor":{"type":"integer","minimum":0,"maximum":100000,"description":"Balance threshold in USD."},"autoReloadTarget":{"type":"integer","minimum":0,"maximum":100000,"description":"Target balance in USD."}},"required":["autoReloadEnabled","autoReloadFloor","autoReloadTarget"],"additionalProperties":false}},{"name":"create_card_setup","method":"POST","path":"/api/user/stripe/payment-intent","description":"Create a Stripe setup intent for client-side card collection.","access":"account","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"save_card","method":"POST","path":"/api/user/stripe/card","description":"Save a Stripe payment method to your account.","access":"account","inputSchema":{"type":"object","properties":{"paymentMethodId":{"type":"string","minLength":1,"maxLength":128,"description":"Stripe payment method ID from a completed client-side card flow.","pattern":"^pm_[A-Za-z0-9]+$"}},"required":["paymentMethodId"],"additionalProperties":false}},{"name":"remove_card","method":"DELETE","path":"/api/user/stripe/card","description":"Remove the saved payment method from your account.","access":"account","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"setup_and_charge","method":"POST","path":"/api/billing/setup-and-charge","description":"Set up billing and charge the supplied payment method for the selected plan.","access":"account","inputSchema":{"type":"object","properties":{"plan":{"type":"string","enum":["payg","monthly_10"]},"amount":{"type":"number","exclusiveMinimum":0,"description":"Amount in US dollars."},"paymentMethodId":{"type":"string","minLength":1,"maxLength":128,"description":"Stripe payment method ID from a completed client-side card flow.","pattern":"^pm_[A-Za-z0-9]+$"}},"required":["plan","amount","paymentMethodId"],"additionalProperties":false}}]}