> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nimbleway.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Route

> **WebRouter is in closed beta.** It's available to selected accounts, and the API may still change. To get access, [talk to the Nimble team](https://nimbleway.com/contact-general/).

Plan the query as one step and run it: the step's tool with its body. `optimized_for` and `budgets` go to the planner, and the step carries `optimized_for` on to a search, extract or research. Answers `{plan, result, job}`, exactly one of `result` and `job` set: the plan that ran, and the tool's own answer. A research or browse is a job, billed as a start: 202 `{plan, job}`, polled by its `job.job_id`.



## OpenAPI

````yaml /api-reference/web-router-openapi.json post /v2/web-router/route
openapi: 3.1.0
info:
  title: WebRouter API
  version: 1.0.0
  description: >-
    Closed beta. One API to search, extract, research and browse the web, on
    Nimble or any provider your account may use. `route` picks the tool and
    provider for a query and runs it in one call. Search and extract answer
    within the call. Research and browse are jobs: start one, then poll it by
    `job_id` until `state` is `completed`, `failed` or `cancelled`. Authenticate
    with `Authorization: Bearer YOUR_API_KEY`.
servers:
  - url: https://sdk.nimbleway.com
security: []
paths:
  /v2/web-router/route:
    post:
      tags:
        - WebRouter
      summary: Route
      description: >-
        **WebRouter is in closed beta.** It's available to selected accounts,
        and the API may still change. To get access, [talk to the Nimble
        team](https://nimbleway.com/contact-general/).


        Plan the query as one step and run it: the step's tool with its body.
        `optimized_for` and `budgets` go to the planner, and the step carries
        `optimized_for` on to a search, extract or research. Answers `{plan,
        result, job}`, exactly one of `result` and `job` set: the plan that ran,
        and the tool's own answer. A research or browse is a job, billed as a
        start: 202 `{plan, job}`, polled by its `job.job_id`.
      operationId: route
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RouteRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RouteResponse'
        '202':
          description: >-
            The route started a job (research or browse): poll it by
            `job.job_id`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RouteResponse'
        '401':
          description: Missing or invalid API key, or Nimble refused your account.
        '402':
          description: 'Nimble refused your account: out of credits.'
        '403':
          description: Nimble refused your account, or WebRouter is not enabled for it.
        '422':
          description: The request is invalid, or the provider cannot serve it as asked.
        '429':
          description: 'Nimble refused to start another run: your account''s limit.'
        '501':
          description: >-
            The route needs what WebRouter cannot do yet: a planned tool with no
            route (`not_implemented`).
        '502':
          description: >-
            The provider failed. On a start, `may_have_started` says when a job
            may have started.
        '504':
          description: >-
            The provider did not answer in time. On a start, `may_have_started`
            says when a job may have started.
      security:
        - BearerAuth: []
components:
  schemas:
    RouteRequest:
      properties:
        query:
          type: string
          maxLength: 10000
          pattern: >-
            [^\s\x00-\x1f\x7f-\x9f\xad\u0600-\u0605\u061c\u06dd\u070f\u0890\u0891\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb]
          title: Query
          description: >-
            The request, as free text: the tool's input (a search's query, a
            browse's task, the URLs in it for extract).
          examples:
            - Jensen Huang
        optimized_for:
          anyOf:
            - $ref: '#/components/schemas/OptimizedFor'
            - type: 'null'
          description: >-
            What to favour: speed, cost or coverage. Unset or empty is
            `balanced`.
        budgets:
          anyOf:
            - $ref: '#/components/schemas/Budgets'
            - type: 'null'
          description: What answering may spend. Unset sets no limit.
      additionalProperties: false
      type: object
      required:
        - query
      title: RouteRequest
      examples:
        - optimized_for: speed
          query: Jensen Huang
    RouteResponse:
      properties:
        plan:
          $ref: '#/components/schemas/Plan'
          description: The one-step plan the route ran.
        result:
          anyOf:
            - $ref: '#/components/schemas/SearchResponse'
            - $ref: '#/components/schemas/ExtractResponse'
            - type: 'null'
          title: Result
          description: >-
            A search's or an extract's own answer, when the route ran one; null
            when it started a job.
        job:
          anyOf:
            - $ref: '#/components/schemas/StartedJob'
            - type: 'null'
          description: >-
            The job a research or browse started, to poll by its `job_id`; null
            when `result` is set.
      type: object
      required:
        - plan
        - result
        - job
      title: RouteResponse
      description: Exactly one of `result` and `job` is set; the other is null.
    OptimizedFor:
      type: string
      enum:
        - speed
        - cost
        - coverage
        - balanced
      title: OptimizedFor
      description: '`balanced` is what a request that sends no `optimized_for` asks for.'
    Budgets:
      properties:
        time_seconds:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Time Seconds
          description: Wall-clock time, in seconds.
        cost_usd:
          anyOf:
            - type: number
              exclusiveMinimum: 0
            - type: 'null'
          title: Cost Usd
          description: Spend, in US dollars.
      additionalProperties: false
      type: object
      title: Budgets
      description: A budget left unset sets no limit.
    Plan:
      properties:
        format_version:
          type: string
          const: '1'
          title: Format Version
          description: The version of this format.
          default: '1'
        goal:
          type: string
          title: Goal
          description: 'What the plan answers: the query.'
        steps:
          items:
            oneOf:
              - $ref: '#/components/schemas/SearchPlanStep'
              - $ref: '#/components/schemas/ExtractPlanStep'
              - $ref: '#/components/schemas/ResearchPlanStep'
              - $ref: '#/components/schemas/BrowsePlanStep'
              - $ref: '#/components/schemas/RoutePlanStep'
              - $ref: '#/components/schemas/InstructionPlanStep'
            discriminator:
              propertyName: tool
              mapping:
                browse: '#/components/schemas/BrowsePlanStep'
                extract: '#/components/schemas/ExtractPlanStep'
                instruction: '#/components/schemas/InstructionPlanStep'
                research: '#/components/schemas/ResearchPlanStep'
                route: '#/components/schemas/RoutePlanStep'
                search: '#/components/schemas/SearchPlanStep'
          type: array
          minItems: 1
          title: Steps
          description: The calls to make.
        output:
          anyOf:
            - type: string
              pattern: ^[A-Za-z0-9_-]{1,64}$
            - items:
                type: string
                pattern: ^[A-Za-z0-9_-]{1,64}$
              type: array
          title: Output
          description: >-
            The step whose answer is the plan's answer; a list when a step ran
            once per input item, in order.
        instructions:
          type: string
          title: Instructions
          description: How an agent runs a plan in this format.
      additionalProperties: false
      type: object
      required:
        - goal
        - steps
        - output
        - instructions
      title: Plan
      description: >-
        The step route planned: the tool it picked, and the body it sent that
        tool.
    SearchResponse:
      properties:
        provider:
          type: string
          title: Provider
          description: >-
            `nimble_selection` when Nimble picked and served the call. The
            provider's name when your own key served it, with `byok` true.
          examples:
            - nimble_selection
        byok:
          type: boolean
          title: Byok
          description: Whether your own provider key served the call.
        query:
          type: string
          title: Query
        results:
          items:
            $ref: '#/components/schemas/SearchResult'
          type: array
          title: Results
        answer:
          anyOf:
            - type: string
            - type: 'null'
          title: Answer
          description: Synthesized answer, when the provider returned one.
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
          description: The provider's own id. Only when your own key served the call.
      additionalProperties: false
      type: object
      required:
        - provider
        - byok
        - query
      title: SearchResponse
      description: The result of one search, tagged with the provider that served it.
    ExtractResponse:
      properties:
        provider:
          type: string
          title: Provider
          description: >-
            `nimble_selection` when Nimble picked and served the call. The
            provider's name when your own key served it, with `byok` true.
          examples:
            - nimble_selection
        byok:
          type: boolean
          title: Byok
          description: Whether your own provider key served the call.
        documents:
          items:
            $ref: '#/components/schemas/ExtractedDocument'
          type: array
          title: Documents
        failures:
          items:
            $ref: '#/components/schemas/ExtractFailure'
          type: array
          title: Failures
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
          description: >-
            The provider's id for the request. Backends that take one URL per
            call issue one id per document; the first is reported here and all
            of them are in `raw`. Only when your own key served the call.
      additionalProperties: false
      type: object
      required:
        - provider
        - byok
      title: ExtractResponse
      description: >-
        The result of one extract call, tagged with the provider that served
        it.  Extracting several URLs can partly succeed: what came back is in
        `documents`, and every URL that did not is in `failures` with the
        reason. A call where *nothing* came back raises instead, so a failure is
        never something you have to go looking for.
    StartedJob:
      properties:
        job_id:
          type: string
          title: Job Id
          description: 'The job''s id: poll it and cancel it with this.'
        provider:
          type: string
          title: Provider
          description: >-
            `nimble_selection` when Nimble picked and served the call. The
            provider's name when your own key served it, with `byok` true.
          examples:
            - nimble_selection
        byok:
          type: boolean
          title: Byok
          description: Whether your own provider key served the call.
        state:
          type: string
          enum:
            - queued
            - running
            - completed
            - failed
            - cancelled
          title: State
          description: 'Where it stands: ''queued'' or ''running'' on a start.'
        job_url:
          type: string
          title: Job Url
          description: >-
            The job's path on the server. Poll the job by its `job_id` at `GET
            /v2/web-router/research/{job_id}` or `GET
            /v2/web-router/browse/{job_id}`.
      type: object
      required:
        - job_id
        - provider
        - byok
        - state
        - job_url
      title: StartedJob
    SearchPlanStep:
      properties:
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,64}$
          title: Id
          description: The step's id, unique in the plan.
          examples:
            - s1
        tool:
          type: string
          const: search
          title: Tool
        why:
          type: string
          title: Why
          description: >-
            The rationale the query and body don't already say: what the caller
            is really after from this step. Empty when it would only repeat
            them.
          examples:
            - 'Professional background: current role and history'
        body:
          $ref: '#/components/schemas/SearchRequest'
        after:
          anyOf:
            - items:
                type: string
                pattern: ^[A-Za-z0-9_-]{1,64}$
              type: array
              minItems: 1
            - type: 'null'
          title: After
          description: >-
            Earlier steps that must finish first. Steps not linked by `after`
            may run in parallel.
        use:
          anyOf:
            - type: string
            - type: 'null'
          title: Use
          description: How to fill the body's fields from earlier steps' results.
        mcp_tool:
          type: string
          title: Mcp Tool
          description: That tool's MCP name.
          readOnly: true
      additionalProperties: false
      type: object
      required:
        - id
        - tool
        - why
        - body
        - mcp_tool
      title: SearchPlanStep
    ExtractPlanStep:
      properties:
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,64}$
          title: Id
          description: The step's id, unique in the plan.
          examples:
            - s1
        tool:
          type: string
          const: extract
          title: Tool
        why:
          type: string
          title: Why
          description: >-
            The rationale the query and body don't already say: what the caller
            is really after from this step. Empty when it would only repeat
            them.
          examples:
            - 'Professional background: current role and history'
        body:
          $ref: '#/components/schemas/ExtractRequest'
        after:
          anyOf:
            - items:
                type: string
                pattern: ^[A-Za-z0-9_-]{1,64}$
              type: array
              minItems: 1
            - type: 'null'
          title: After
          description: >-
            Earlier steps that must finish first. Steps not linked by `after`
            may run in parallel.
        use:
          anyOf:
            - type: string
            - type: 'null'
          title: Use
          description: How to fill the body's fields from earlier steps' results.
        mcp_tool:
          type: string
          title: Mcp Tool
          description: That tool's MCP name.
          readOnly: true
      additionalProperties: false
      type: object
      required:
        - id
        - tool
        - why
        - body
        - mcp_tool
      title: ExtractPlanStep
    ResearchPlanStep:
      properties:
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,64}$
          title: Id
          description: The step's id, unique in the plan.
          examples:
            - s1
        tool:
          type: string
          const: research
          title: Tool
        why:
          type: string
          title: Why
          description: >-
            The rationale the query and body don't already say: what the caller
            is really after from this step. Empty when it would only repeat
            them.
          examples:
            - 'Professional background: current role and history'
        body:
          $ref: '#/components/schemas/ResearchRequest'
        after:
          anyOf:
            - items:
                type: string
                pattern: ^[A-Za-z0-9_-]{1,64}$
              type: array
              minItems: 1
            - type: 'null'
          title: After
          description: >-
            Earlier steps that must finish first. Steps not linked by `after`
            may run in parallel.
        use:
          anyOf:
            - type: string
            - type: 'null'
          title: Use
          description: How to fill the body's fields from earlier steps' results.
        mcp_tool:
          type: string
          title: Mcp Tool
          description: That tool's MCP name.
          readOnly: true
      additionalProperties: false
      type: object
      required:
        - id
        - tool
        - why
        - body
        - mcp_tool
      title: ResearchPlanStep
    BrowsePlanStep:
      properties:
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,64}$
          title: Id
          description: The step's id, unique in the plan.
          examples:
            - s1
        tool:
          type: string
          const: browse
          title: Tool
        why:
          type: string
          title: Why
          description: >-
            The rationale the query and body don't already say: what the caller
            is really after from this step. Empty when it would only repeat
            them.
          examples:
            - 'Professional background: current role and history'
        body:
          $ref: '#/components/schemas/BrowseRequest'
        after:
          anyOf:
            - items:
                type: string
                pattern: ^[A-Za-z0-9_-]{1,64}$
              type: array
              minItems: 1
            - type: 'null'
          title: After
          description: >-
            Earlier steps that must finish first. Steps not linked by `after`
            may run in parallel.
        use:
          anyOf:
            - type: string
            - type: 'null'
          title: Use
          description: How to fill the body's fields from earlier steps' results.
        mcp_tool:
          type: string
          title: Mcp Tool
          description: That tool's MCP name.
          readOnly: true
      additionalProperties: false
      type: object
      required:
        - id
        - tool
        - why
        - body
        - mcp_tool
      title: BrowsePlanStep
    RoutePlanStep:
      properties:
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,64}$
          title: Id
          description: The step's id, unique in the plan.
          examples:
            - s1
        tool:
          type: string
          const: route
          title: Tool
        why:
          type: string
          title: Why
          description: >-
            The rationale the query and body don't already say: what the caller
            is really after from this step. Empty when it would only repeat
            them.
          examples:
            - 'Professional background: current role and history'
        body:
          $ref: '#/components/schemas/RouteRequest'
        after:
          anyOf:
            - items:
                type: string
                pattern: ^[A-Za-z0-9_-]{1,64}$
              type: array
              minItems: 1
            - type: 'null'
          title: After
          description: >-
            Earlier steps that must finish first. Steps not linked by `after`
            may run in parallel.
        use:
          anyOf:
            - type: string
            - type: 'null'
          title: Use
          description: How to fill the body's fields from earlier steps' results.
        mcp_tool:
          type: string
          title: Mcp Tool
          description: That tool's MCP name.
          readOnly: true
      additionalProperties: false
      type: object
      required:
        - id
        - tool
        - why
        - body
        - mcp_tool
      title: RoutePlanStep
    InstructionPlanStep:
      properties:
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,64}$
          title: Id
          description: The step's id, unique in the plan.
          examples:
            - s1
        tool:
          type: string
          const: instruction
          title: Tool
        why:
          type: string
          title: Why
          description: >-
            The rationale the query and body don't already say: what the caller
            is really after from this step. Empty when it would only repeat
            them.
          examples:
            - 'Professional background: current role and history'
        body:
          $ref: '#/components/schemas/InstructionRequest'
        after:
          anyOf:
            - items:
                type: string
                pattern: ^[A-Za-z0-9_-]{1,64}$
              type: array
              minItems: 1
            - type: 'null'
          title: After
          description: >-
            Earlier steps that must finish first. Steps not linked by `after`
            may run in parallel.
        use:
          anyOf:
            - type: string
            - type: 'null'
          title: Use
          description: How to fill the body's fields from earlier steps' results.
      additionalProperties: false
      type: object
      required:
        - id
        - tool
        - why
        - body
      title: InstructionPlanStep
      description: >-
        Answered by the agent running the plan, not a tool: for combining or
        reshaping answers the plan already has, with no size limit on them and
        nothing to pay for. Finding anything new is a tool step's job.
    SearchResult:
      properties:
        url:
          type: string
          title: Url
        title:
          type: string
          title: Title
          default: ''
        description:
          type: string
          title: Description
          description: >-
            A snippet-length summary: the provider's own when it gives one,
            otherwise the head of the page body so the field means the same
            thing everywhere.
          default: ''
        content:
          type: string
          title: Content
          description: >-
            The fullest text available for this result: the page body when the
            provider returned one, otherwise the description. Empty only when
            there is no text at all.
          default: ''
        score:
          anyOf:
            - type: number
            - type: 'null'
          title: Score
          description: Provider relevance score, when one is given.
        published_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Published Date
        extra:
          additionalProperties: true
          type: object
          title: Extra
          description: Provider-specific fields with no normalized equivalent.
      additionalProperties: false
      type: object
      required:
        - url
      title: SearchResult
      description: A single result, normalized across providers.
    ExtractedDocument:
      properties:
        url:
          type: string
          title: Url
        title:
          type: string
          title: Title
          description: The page title, when the provider returned one.
          default: ''
        content:
          type: string
          title: Content
          description: The page body, in the representation `format` names.
          default: ''
        format:
          anyOf:
            - type: string
              enum:
                - markdown
                - html
                - text
            - type: 'null'
          title: Format
          description: >-
            Which representation `content` holds -- the one asked for, or, when
            none was, markdown wherever the provider can return it and its own
            default where it cannot. Never a guess: a provider that cannot
            return the requested format raises instead.
        status_code:
          anyOf:
            - type: integer
            - type: 'null'
          title: Status Code
          description: The fetched page's HTTP status, when reported.
        published_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Published Date
        warnings:
          items:
            type: string
          type: array
          title: Warnings
          description: >-
            What looked off about a page that came back, such as a near-empty
            body.
        extra:
          additionalProperties: true
          type: object
          title: Extra
          description: Provider-specific fields with no normalized equivalent.
      additionalProperties: false
      type: object
      required:
        - url
      title: ExtractedDocument
      description: One fetched page, normalized across providers.
    ExtractFailure:
      properties:
        url:
          type: string
          title: Url
        error:
          type: string
          title: Error
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
          description: The provider's own error code, when it refused this page with one.
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Details
          description: >-
            The rest of the provider's own error for this page, as it gave it: a
            link to act on, say.
      additionalProperties: false
      type: object
      required:
        - url
        - error
      title: ExtractFailure
      description: A URL the provider could not fetch, and why.
    SearchRequest:
      properties:
        max_results:
          anyOf:
            - type: integer
              maximum: 100
              minimum: 1
            - type: 'null'
          title: Max Results
          description: Upper bound on results returned. Unset is 10.
        search_depth:
          anyOf:
            - type: string
              enum:
                - lite
                - fast
                - deep
            - type: 'null'
          title: Search Depth
          description: >-
            How much page content to retrieve: 'lite' is links and descriptions,
            'fast' a truncated body, 'deep' the full page, so its results are
            large. Unset is the provider's own default.
        include_domains:
          anyOf:
            - items:
                type: string
                pattern: ^[^\x00]*$
              type: array
              maxItems: 50
            - type: 'null'
          title: Include Domains
          description: Restrict results to these domains.
        exclude_domains:
          anyOf:
            - items:
                type: string
                pattern: ^[^\x00]*$
              type: array
              maxItems: 50
            - type: 'null'
          title: Exclude Domains
          description: Drop results from these domains.
        country:
          anyOf:
            - type: string
              pattern: ^[^\x00]*$
            - type: 'null'
          title: Country
          description: Country code for geo-targeting, e.g. 'US'.
        locale:
          anyOf:
            - type: string
              pattern: ^[^\x00]*$
            - type: 'null'
          title: Locale
          description: Language code, e.g. 'en'.
        include_answer:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Include Answer
          description: >-
            Also return an answer to the query. Only Nimble answers: a search
            another provider serves comes back without one.
        optimized_for:
          anyOf:
            - $ref: '#/components/schemas/OptimizedFor'
            - type: 'null'
          description: >-
            What to favour: speed, cost or coverage. Unset or empty is
            `balanced`.
        query:
          type: string
          pattern: >-
            [^\s\x00-\x1f\x7f-\x9f\xad\u0600-\u0605\u061c\u06dd\u070f\u0890\u0891\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb]
          title: Query
          description: The search query.
          examples:
            - Jensen Huang
      additionalProperties: false
      type: object
      required:
        - query
      title: SearchRequest
      description: A search request.
      examples:
        - query: Jensen Huang
    ExtractRequest:
      properties:
        format:
          anyOf:
            - type: string
              enum:
                - markdown
                - html
                - text
            - type: 'null'
          title: Format
          description: >-
            Which representation of each page to return. Unset is markdown
            wherever the provider has it.
        optimized_for:
          anyOf:
            - $ref: '#/components/schemas/OptimizedFor'
            - type: 'null'
          description: >-
            What to favour: speed, cost or coverage. Unset or empty is
            `balanced`.
        urls:
          items:
            type: string
            minLength: 1
            pattern: ^[Hh][Tt][Tt][Pp][Ss]?://\S+$
          type: array
          maxItems: 20
          minItems: 1
          title: Urls
          description: >-
            The URLs to fetch, as absolute http(s) URLs, in the order the
            documents come back: at most 20 different ones. A URL asked for
            again, also with or without a trailing slash on its path, is fetched
            once, as first given.
          examples:
            - - https://example.com
      additionalProperties: false
      type: object
      required:
        - urls
      title: ExtractRequest
      description: A extract request.
      examples:
        - urls:
            - https://example.com
    ResearchRequest:
      properties:
        output_schema:
          anyOf:
            - additionalProperties: true
              type: object
              minProperties: 1
            - type: 'null'
          title: Output Schema
          description: >-
            JSON Schema the answer must conform to. Unset asks for prose
            instead. Its root must be an object with non-empty `properties`, or
            an array with `items`.
        effort:
          anyOf:
            - type: string
              enum:
                - low
                - medium
                - high
            - type: 'null'
          title: Effort
          description: >-
            How much work the run should do, and so how long it takes and what
            it costs: 'low' a quick pass, closest in cost to a deep search;
            'medium' a typical agentic run; 'high' several rounds of gathering
            and cross-checking. Unset is each provider's own default, which for
            some is a deep and costly tier.
        include_domains:
          anyOf:
            - items:
                type: string
                minLength: 1
                pattern: ^[^\x00]*$
              type: array
              maxItems: 50
              minItems: 1
            - type: 'null'
          title: Include Domains
          description: Restrict sources to these domains.
        exclude_domains:
          anyOf:
            - items:
                type: string
                minLength: 1
                pattern: ^[^\x00]*$
              type: array
              maxItems: 50
              minItems: 1
            - type: 'null'
          title: Exclude Domains
          description: Keep these domains out of the sources.
        optimized_for:
          anyOf:
            - $ref: '#/components/schemas/OptimizedFor'
            - type: 'null'
          description: >-
            What to favour: speed, cost or coverage. Unset or empty is
            `balanced`.
        query:
          type: string
          maxLength: 10000
          pattern: >-
            [^\s\x00-\x1f\x7f-\x9f\xad\u0600-\u0605\u061c\u06dd\u070f\u0890\u0891\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb]
          title: Query
          description: The question, or the instructions for the run.
          examples:
            - What is the headquarters country of Infineon?
        records:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
              maxItems: 1000
              minItems: 1
            - type: 'null'
          title: Records
          description: >-
            Partial records to enrich, each shaped like `output_schema`, e.g.
            `[{"company": "NXP Semiconductors"}]`: the completed answer's
            `structured` is then a list, one row per record. Nimble needs
            `effort` 'medium' or above for it. Unset researches the query alone.
      additionalProperties: false
      type: object
      required:
        - query
      title: ResearchRequest
      description: A research request.
      examples:
        - effort: low
          query: What is the headquarters country of Infineon?
    BrowseRequest:
      properties:
        start_url:
          anyOf:
            - type: string
              minLength: 1
              pattern: ^[Hh][Tt][Tt][Pp][Ss]?://\S+$
            - type: 'null'
          title: Start Url
          description: The page the agent starts on.
        output_schema:
          anyOf:
            - additionalProperties: true
              type: object
              minProperties: 1
            - type: 'null'
          title: Output Schema
          description: >-
            JSON Schema the answer must conform to. Unset asks for prose
            instead. Its root must be an object with non-empty `properties`, or
            an array with `items`.
        max_steps:
          anyOf:
            - type: integer
              maximum: 10000
              minimum: 1
            - type: 'null'
          title: Max Steps
          description: >-
            Upper bound on the actions the agent may take. Unset is the
            provider's own limit.
        allowed_domains:
          anyOf:
            - items:
                type: string
                minLength: 1
                pattern: ^[^\x00]*$
              type: array
              maxItems: 50
              minItems: 1
            - type: 'null'
          title: Allowed Domains
          description: Keep the agent on these domains.
        task:
          type: string
          maxLength: 10000
          pattern: >-
            [^\s\x00-\x1f\x7f-\x9f\xad\u0600-\u0605\u061c\u06dd\u070f\u0890\u0891\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb]
          title: Task
          description: What the agent should do, in plain words.
          examples:
            - Find the pricing page and list the plan names
      additionalProperties: false
      type: object
      required:
        - task
      title: BrowseRequest
      description: A browse request.
      examples:
        - start_url: https://example.com
          task: Find the pricing page and list the plan names
    InstructionRequest:
      properties:
        prompt:
          type: string
          maxLength: 10000
          pattern: >-
            [^\s\x00-\x1f\x7f-\x9f\xad\u0600-\u0605\u061c\u06dd\u070f\u0890\u0891\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb]
          title: Prompt
          description: >-
            What to write from the answers of the steps in `after`: how to
            combine, check or reshape them.
          examples:
            - >-
              Merge the area answers into one report, keeping every value's
              source_url.
        output_schema:
          anyOf:
            - additionalProperties: true
              type: object
              minProperties: 1
            - type: 'null'
          title: Output Schema
          description: >-
            JSON Schema the answer must conform to. Unset asks for prose
            instead.
      additionalProperties: false
      type: object
      required:
        - prompt
      title: InstructionRequest
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.