# list_views

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

List a team's or a project's saved views, the default view first. Give team or project. Returns each view's filters, grouping, order and layout. Needs read access.

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

## Inputs

- `team` (string): The team the view belongs to, such as WEB. Give team or project, not both.
- `project` (string): The project the view belongs to, such as docs-launch. Give team or project, not both.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_views",
    "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/views:list \
  -H "Authorization: Bearer $CLANKER_AGENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "team": "WEB"
  }'
```
