Image search
Let an Agent find existing images on the public web with Brave Image Search.
Image search is off by default. Add { "type": "image_search" } to a saved
Agent's tools or to an inline Session's agent.tools. Rebyte runs the tool
on its server without a Sandbox.
Enable image search
Send POST /v1/agents/sessions to https://api.rebyte.ai with your organization
API key and the OpenAI-Beta: agents=v1 header.
{
"agent": {
"model": "gpt-6-luna",
"tools": [{ "type": "image_search" }]
},
"environment": { "type": "none" },
"input": "Find public web images of the Golden Gate Bridge in fog and cite the source pages."
}
Pass this body to rebyte.sessions.create() in the TypeScript SDK. For a
browser app, enable the tool when your backend creates the Session. The browser
can then submit input and read results with that Session's short-lived client
secret. TypeScript SDK · Session client secrets
Read results
The Agent can call rebyte_image_search with a query of up to 400 characters
and 50 words. It can request 1–10 results per call, with a default of 5.
Rebyte uses Brave's strict SafeSearch setting. Brave Image Search
Find the corresponding function_call_output by matching its call_id to
the call. Parse the successful item's output JSON to get results.
Session Items
| Field | Value |
|---|---|
title | Result title |
source_url | Source page URL to cite |
image_url | Original image URL, or null |
thumbnail_url | Thumbnail URL, or null |
width, height | Original image dimensions in pixels when available, or null |
Rebyte returns links to the images. Image search adds no separate Rebyte credit charge. Agent model usage is billed as usual.