# Create agent avatar

Tool: `veryfront__create_agent_avatar`

Create agent avatar. Requires project.agents.write.

## Arguments

| Name                 | Type                                   | Required | Description                                                                                                                                                                                      |
| -------------------- | -------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `agent_id`           | string · min length 1 · max length 128 | Yes      | Provide the agent id.                                                                                                                                                                            |
| `config`             | object                                 |          | Avatar configuration. Omit `seed` to generate a new avatar. With an explicit seed, omitted visual options use the existing avatar configuration if available. New agents use generator defaults. |
| `assign`             | boolean · default false                |          | Persist the generated avatar\_url onto the agent. Defaults to false; set true to assign it to an existing agent.                                                                                 |
| `source_target_kind` | string                                 |          | Source target: project or preview\_branch. Defaults to project.                                                                                                                                  |
| `target_branch_id`   | string · uuid \| null                  |          | Preview branch UUID, for a preview\_branch target.                                                                                                                                               |
| `project_reference`  | string                                 |          | Project identifier or slug that scopes the tool call.                                                                                                                                            |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_agent_avatar",
    "arguments": {
      "agent_id": "a"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"avatar_url\":\"https://example.com\"}"
      }
    ],
    "structuredContent": {
      "avatar_url": "https://example.com"
    }
  }
}
```
