# search

Canonical URL: https://developers.iagenify.com/de/sdk/agent/tools/search/
Language: de

`search({ query, max_results? })`

The local agent’s search tool queries IaGenify’s configured SearXNG service. For keyword research, site discovery, page audits, or sampled competitor URL gaps, use the advanced [api.tools.search()](/de/sdk/ref/tools/search) service directly.

Status: category: read · 1 credit · never asked

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `query` | string | required | What to look for. |
| `max_results` | integer |  | How many results. |

## What it gives back {#returns}

Titles, URLs and snippets from IaGenify’s configured SearXNG service. The agent can choose a result to open with [fetch](/de/sdk/agent/tools/fetch). For the complete result shape, filters, later pages and advanced search actions, see [api.tools.search()](/de/sdk/ref/tools/search).

## What it costs {#billing}

| Situation | Charged |
| --- | --- |
| Results found | 1 credit |
| The same search within the day | nothing — it is cached |
| No result at all | nothing — refunded |

> **Free to permit is not free to run**
>
> It is a read, so no mode asks about it. What bounds a searching run is budget.

## Search index and result volume {#index}

The service uses the configured SearXNG instance; callers do not choose an engine. A requested `max_results` is only a response ceiling and does not guarantee that upstream indexes contain that many results.

- [fetch](/de/sdk/agent/tools/fetch): Opening one of the results.
- [api.tools.search()](/de/sdk/ref/tools/search): The full surface.
- [Agent tools](/de/sdk/agent/tools): The 35, by family.
