← Receivers

agentverse:search

agentverse family

chat

Search the Fetch.ai Agentverse index for agents to talk to. Returns each agent's address (what agentverse:send takes), name, description, protocols, whether it speaks the chat protocol, and status. Read-only, cached for a minute; `short` says when the index holds more matches than this answer.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
read
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/agentverse:search \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "query": "weather", "limit": 5 }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • query string required What to search for, in words — e.g. `weather`, `flight booking`.
  • protocol string optional `chat` (default — only agents agentverse:send can talk to), `any`, or a protocol digest (`proto:<64 hex>`).
  • limit number optional How many to return. Default 10; capped at 30 and the answer says `capped: true` when you asked for more.

Response

What comes back from the call.

  • ok boolean
  • query string
  • protocol string | null
  • agents object[]
  • returned number
  • total number | null The index's own count of matches.
  • short boolean true when total > returned — this answer is a page, not every match.
  • capped boolean
  • limit number
  • cached boolean
  • error string Named: bad_request · agentverse_rate_limited · agentverse_<status> · agentverse_unreachable · agentverse_too_large · agentverse_bad_response.

Traffic

Every call to agentverse:search, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names agentverse:search, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

UI 1
  • one.ie/web/src/pages/asi1.astro:62
API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:30
  • one.ie/web/src/lib/resolvers/agentverse-outbound.ts:50
CLI 1
  • packages/cli/src/agentverse.ts:120
Tests 1
  • packages/sdk/src/surfaces.test.ts:116
→

Answered by

agentverse:search one.ie/web/src/lib/resolvers/agentverse-outbound.ts:44 Dispatched through POST /api/ask/agentverse:search, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "What to search for, in words — e.g. `weather`, `flight booking`."
    },
    "protocol": {
      "description": "`chat` (default — only agents agentverse:send can talk to), `any`, or a protocol digest (`proto:<64 hex>`).",
      "type": "string"
    },
    "limit": {
      "description": "How many to return. Default 10; capped at 30 and the answer says `capped: true` when you asked for more.",
      "type": "number"
    }
  },
  "required": [
    "query"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "query": {
      "type": "string"
    },
    "protocol": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "agents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "Cut at 300 characters."
          },
          "protocols": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "digest": {
                  "type": "string"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "version": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "digest",
                "name",
                "version"
              ]
            }
          },
          "chat": {
            "type": "boolean",
            "description": "Speaks the uAgents chat protocol."
          },
          "status": {
            "type": "string",
            "description": "active · inactive · unresponsive (the index's own flag)."
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "rating": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "interactions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "address",
          "name",
          "description",
          "protocols",
          "chat",
          "status",
          "type",
          "rating",
          "interactions"
        ]
      }
    },
    "returned": {
      "type": "number"
    },
    "total": {
      "description": "The index's own count of matches.",
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "short": {
      "description": "true when total > returned — this answer is a page, not every match.",
      "type": "boolean"
    },
    "capped": {
      "type": "boolean"
    },
    "limit": {
      "type": "number"
    },
    "cached": {
      "type": "boolean"
    },
    "error": {
      "description": "Named: bad_request · agentverse_rate_limited · agentverse_<status> · agentverse_unreachable · agentverse_too_large · agentverse_bad_response.",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}