# add_team_member

`tools/call` · `POST /agent/v1/teams:add-member`

Add a workspace member to a team. Adding someone already in the team changes nothing. Returns the team with its members. Needs write access, and your person must be in the team or be a workspace owner or admin.

- Area: Planning
- Needs the write grant. Idempotent.

## Inputs

- `team` (string, required): A team key, such as WEB.
- `person` (string, required): A workspace member's email or user ID, such as maya@acme.dev.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_team_member",
    "arguments": {
      "team": "WEB",
      "person": "maya@acme.dev"
    }
  }
}
```

## 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/teams:add-member \
  -H "Authorization: Bearer $CLANKER_AGENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "team": "WEB",
    "person": "maya@acme.dev"
  }'
```
