# Get agent source

Tool: `veryfront__get_agent_source`

Get agent source. Requires project.agents.read.

## Arguments

| Name                    | Type                  | Required | Description                                                                                                                                            |
| ----------------------- | --------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `agent_id`              | string                | Yes      | The stable agent\_id returned by list\_agents, not the display name. If only a name is known, list agents in the same project and source target first. |
| `project_reference`     | string                |          | Project identifier or slug that scopes the tool call.                                                                                                  |
| `runtime_target_kind`   | string \| null        |          | Provide the runtime target kind.                                                                                                                       |
| `target_environment_id` | string · uuid \| null |          | Provide the target environment id.                                                                                                                     |
| `target_branch_id`      | string · uuid \| null |          | Provide the target branch id.                                                                                                                          |
| `source_target_kind`    | string                |          | Provide the source target kind. One of `project`, `main_branch`, `environment`, `preview_branch`.                                                      |

## 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__get_agent_source",
    "arguments": {
      "agent_id": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"model\":\"string\",\"system_prompt\":\"string\",\"thinking\":{\"enabled\":false,\"budget_tokens\":1},\"temperature\":0,\"max_steps\":1,\"allowed_models\":[\"string\"],\"skill_ids\":[\"string\"],\"skill_selection\":{\"kind\":\"omitted\",\"skill_ids\":[\"string\"]},\"skill_resolution\":{\"policy\":{\"kind\":\"all-visible\",\"source\":\"omitted\"},\"skill_ids\":[\"string\"],\"source_paths\":{},\"unresolved_entry_indexes\":[0],\"catalog_status\":\"complete\",\"evidence_scope\":\"source_catalog\"},\"skills\":false,\"all_tools_enabled\":false,\"tool_ids\":[\"string\"],\"tools\":false,\"tool_loading\":\"eager\",\"tool_result_context\":false,\"provider_tool_ids\":[\"string\"],\"knowledge\":false,\"suggestions\":[\"string\"],\"avatar\":{\"seed\":\"string\",\"archetype\":\"upright\",\"texture\":\"string\",\"color\":\"#000000\",\"shape\":\"snircle\",\"matrix\":\"0000000000000000\"},\"avatar_url\":\"string\",\"security_enabled\":false,\"source_path\":\"string\",\"source\":\"string\",\"edit_mode\":\"structured\",\"source_only_reasons\":[\"string\"]}"
      }
    ],
    "structuredContent": {
      "id": "string",
      "name": "string",
      "description": "string",
      "model": "string",
      "system_prompt": "string",
      "thinking": {
        "enabled": false,
        "budget_tokens": 1
      },
      "temperature": 0,
      "max_steps": 1,
      "allowed_models": [
        "string"
      ],
      "skill_ids": [
        "string"
      ],
      "skill_selection": {
        "kind": "omitted",
        "skill_ids": [
          "string"
        ]
      },
      "skill_resolution": {
        "policy": {
          "kind": "all-visible",
          "source": "omitted"
        },
        "skill_ids": [
          "string"
        ],
        "source_paths": {},
        "unresolved_entry_indexes": [0],
        "catalog_status": "complete",
        "evidence_scope": "source_catalog"
      },
      "skills": false,
      "all_tools_enabled": false,
      "tool_ids": [
        "string"
      ],
      "tools": false,
      "tool_loading": "eager",
      "tool_result_context": false,
      "provider_tool_ids": [
        "string"
      ],
      "knowledge": false,
      "suggestions": [
        "string"
      ],
      "avatar": {
        "seed": "string",
        "archetype": "upright",
        "texture": "string",
        "color": "#000000",
        "shape": "snircle",
        "matrix": "0000000000000000"
      },
      "avatar_url": "string",
      "security_enabled": false,
      "source_path": "string",
      "source": "string",
      "edit_mode": "structured",
      "source_only_reasons": [
        "string"
      ]
    }
  }
}
```
