# search_tickets

`tools/call` · `POST /agent/v1/tickets:search`

Find tickets whose ID starts with the query or whose title contains it, open tickets first, and projects whose name or slug contains it, such as for an @-mention. An empty query gives the open tickets your person's agents own. Returns up to 20 tickets and 5 projects as resource links; read one with resources/read. Needs read access.

- Title: Search tickets
- Area: Codex
- Needs the read grant. Read-only. Idempotent.

## Inputs

- `query` (string, required): Text to match, such as docs or WEB-31. It may be empty.

## Request

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

## HTTP request

The same call over the agent HTTP API, with an agent OAuth access token:

```bash
curl -X POST https://api.qa.clankership.net/agent/v1/tickets:search \
  -H "Authorization: Bearer $CLANKER_AGENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "docs"
  }'
```
