# List Salesforce object fields

Tool: `veryfront__list_salesforce_object_fields`

List the fields of one Salesforce object in the org connected to a project to map or filter its data; returns every field the connected user can see, or one page when a limit or cursor is sent. Requires project.integrations.read.

## Arguments

| Name                | Type                                    | Required | Description                                                                                           |
| ------------------- | --------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------- |
| `project_reference` | string · min length 1                   |          | Project ID or slug.                                                                                   |
| `object_name`       | string · min length 1                   | Yes      | Salesforce object API name, for example Account.                                                      |
| `limit`             | integer · min 1 · max 100               |          | Opt in to paging: fields per page, 1 to 100. Omit limit and cursor to read every field.               |
| `cursor`            | string · min length 1 · max length 4096 |          | Opaque continuation from page\_info, at most 4096 characters. A cursor without limit reads 20 fields. |

## 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__list_salesforce_object_fields",
    "arguments": {
      "object_name": "A"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"total\":0,\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"},\"data\":[{\"name\":\"string\",\"label\":\"string\",\"type\":\"string\",\"reference_to\":[\"string\"],\"relationship_name\":\"string\",\"nillable\":false,\"createable\":false,\"updateable\":false,\"filterable\":false,\"sortable\":false,\"id_lookup\":false,\"external_id\":false,\"calculated\":false,\"name_field\":false}]}"
      }
    ],
    "structuredContent": {
      "total": 0,
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      },
      "data": [
        {
          "name": "string",
          "label": "string",
          "type": "string",
          "reference_to": [
            "string"
          ],
          "relationship_name": "string",
          "nillable": false,
          "createable": false,
          "updateable": false,
          "filterable": false,
          "sortable": false,
          "id_lookup": false,
          "external_id": false,
          "calculated": false,
          "name_field": false
        }
      ]
    }
  }
}
```
