# `search`

_Search & fetch_

`read` `idempotent`

Search the user's Dalea workspace: planned/written contents, the reference video catalog, and creators. Returns ids to pass to fetch. Use for open-ended questions when you do not know which specific tool applies.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `brandId` | `string` | no |  |
| `query` | `string` | yes |  |

## Example

### Prompt

```text
Search my Dalea workspace for anything related to batch filming.
```

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": {
      "query": "example query"
    }
  }
}
```

### curl

```bash
curl -X POST https://app.usedalea.ai/api/mcp/mcp \
  -H "Authorization: Bearer dalea_mcp_..." \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"query":"example query"}}}'
```
