> For the complete documentation index, see [llms.txt](https://docs.biobox.io/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.biobox.io/guide/how-to/ask-biobox-with-claude/tools/search-entities-fuzzy.md).

# search\_entities\_fuzzy — Search entities (fuzzy)

Search entities (fuzzy)

Search entities (fuzzy)

## What it does

Resolve a possibly-misspelled name to ranked candidate graph nodes with edit-distance (fuzzy) tolerance over the org's ontology object names.

**When to use:** the user's term may be a typo or approximate spelling ("medulloblstoma", "fibroblst"); a fulltext search returned nothing and you suspect a spelling variant — narrow with dbLabel.

**When NOT to use:** the spelling is trustworthy — prefer search\_entities\_fulltext (tighter, higher precision); you already have a uuid — use get\_entity.

**Parameters:**

* `query` — the (possibly misspelled) name to resolve, e.g. "medulloblstoma".
* `dbLabel` — optional graph label to narrow to (e.g. "Disease").
* `limit` — max candidates to return (optional; default 10, max 50). `total` still reports all hits.
* `offset` — page offset into the ranked hits (optional; default 0). Increase by `limit` to page through a large `total`.

**Returns:** An object { candidates, total, returnedCount, offset, truncated }. `total` is the full hit count; `candidates` are in relevance order, each { uuid, displayName, dbLabels } (uuid is the drill handle for get\_entity / get\_entity\_connections / find\_paths). `offset` echoes the page you requested — to page through a large `total`, re-call with `offset` increased by `limit` while `offset + returnedCount < total`. Narrow with `dbLabel`, or refine the query, when `total` is large.

## Parameters

| Parameter | Type   | Required | Description                                                                                                  |
| --------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------ |
| `query`   | string | yes      | the (possibly misspelled) name to resolve, e.g. "medulloblstoma".                                            |
| `dbLabel` | string | no       | optional graph label to narrow to (e.g. "Disease").                                                          |
| `limit`   | number | no       | max candidates to return (optional; default 10, max 50). `total` still reports all hits.                     |
| `offset`  | number | no       | page offset into the ranked hits (optional; default 0). Increase by `limit` to page through a large `total`. |

## Response

```ts
_(identity shaper — response = the handler result; see the tool source.)_
```

## Example

```json
// search_entities_fuzzy({"query":"medulloblstoma","dbLabel":"Disease"})
{
  "query": "medulloblstoma",
  "dbLabel": "Disease"
}
```

Response (arrays truncated):

```json
{
  "candidates": [
    {
      "uuid": "EFO:0002939",
      "displayName": "medulloblastoma",
      "dbLabels": [
        "Disease",
        "EFO"
      ]
    },
    {
      "uuid": "MONDO:0016712",
      "displayName": "classic medulloblastoma",
      "dbLabels": [
        "Resource",
        "MONDO",
        "Disease",
        "… 1 more"
      ]
    },
    {
      "uuid": "MONDO:0002796",
      "displayName": "melanotic medulloblastoma",
      "dbLabels": [
        "Resource",
        "MONDO",
        "Disease"
      ]
    },
    "… 7 more"
  ],
  "total": 24,
  "returnedCount": 10,
  "offset": 0,
  "truncated": false
}
```
