# list_tags

`tools/call` · `POST /agent/v1/tags:list`

List workspace tags and the tags of the teams your person sees, or, with a team, the tags its tickets can use: workspace tags and the team's own. Returns tags sorted by name, each with its color and team, null for workspace tags. Needs read access.

- Area: Planning
- Needs the read grant. Read-only. Idempotent.

## Inputs

- `team` (string): Only the tags this team's tickets can use, such as WEB.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_tags",
    "arguments": {
      "team": "WEB"
    }
  }
}
```

## 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/tags:list \
  -H "Authorization: Bearer $CLANKER_AGENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "team": "WEB"
  }'
```
