> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Clay Enterprise: Clay Fields

> List the filter fields a Clay search source type accepts, with each field's type, allowed values and description. Includes SDK V2 examples, schemas, and cost.

List the filter fields a Clay search source type accepts, with each field's type, allowed values and description.

> [!NOTE]
>
> Tool ID: `clay_fields`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'clay_fields',
  {
    "source_type": "people"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute clay_fields --input '{
  "source_type": "people"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "fields": [
      {
        "name": "Example",
        "type": "example"
      }
    ],
    "guidance": {
      "behavior": [
        "example"
      ],
      "field_guidance": [
        {
          "id": "id_123",
          "text": "example"
        }
      ]
    },
    "source_type": "people"
  }
}
```

Use `deepline describe clay_fields --json` for the latest machine-readable contract.

## Input reference

Returns every filter field accepted by POST /search/filters-mode for the given source type, including each field's type, description, allowed values, and usage guidance. Call this before creating a search to build valid filters.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.source_type` | `"people" \| "companies"` | Yes | — | Allowed: `people`, `companies`. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns every filter field accepted by POST /search/filters-mode for the given source type, including each field's type, description, allowed values, and usage guidance. Call this before creating a search to build valid filters.",
    "properties": {
      "source_type": {
        "type": "string",
        "enum": [
          "people",
          "companies"
        ]
      }
    },
    "required": [
      "source_type"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.fields` | `array` | Yes | — | — |
| `result.data.fields[].allowed_values` | `array` | No | — | — |
| `result.data.fields[].description` | `string` | No | — | — |
| `result.data.fields[].name` | `string` | Yes | — | — |
| `result.data.fields[].type` | `string` | Yes | — | — |
| `result.data.guidance` | `object` | Yes | — | — |
| `result.data.guidance.behavior` | `array` | Yes | — | — |
| `result.data.guidance.create_examples` | `array` | No | — | — |
| `result.data.guidance.create_examples[].intent` | `string` | Yes | — | — |
| `result.data.guidance.create_examples[].request` | `object` | Yes | — | — |
| `result.data.guidance.create_examples[].request.filters` | `record` | Yes | — | — |
| `result.data.guidance.create_examples[].request.source_type` | `"people" \| "companies"` | Yes | — | Allowed: `people`, `companies`. |
| `result.data.guidance.field_guidance` | `array` | Yes | — | — |
| `result.data.guidance.field_guidance[].fields` | `array` | No | — | — |
| `result.data.guidance.field_guidance[].id` | `string` | Yes | — | — |
| `result.data.guidance.field_guidance[].text` | `string` | Yes | — | — |
| `result.data.source_type` | `"people" \| "companies"` | Yes | — | Allowed: `people`, `companies`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "allowed_values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "description": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "type"
              ],
              "additionalProperties": false
            }
          },
          "guidance": {
            "type": "object",
            "properties": {
              "behavior": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "create_examples": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "intent": {
                      "type": "string"
                    },
                    "request": {
                      "type": "object",
                      "properties": {
                        "filters": {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        "source_type": {
                          "type": "string",
                          "enum": [
                            "people",
                            "companies"
                          ]
                        }
                      },
                      "required": [
                        "source_type",
                        "filters"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "intent",
                    "request"
                  ],
                  "additionalProperties": false
                }
              },
              "field_guidance": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "id": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "text"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "behavior",
              "field_guidance"
            ],
            "additionalProperties": false
          },
          "source_type": {
            "type": "string",
            "enum": [
              "people",
              "companies"
            ]
          }
        },
        "required": [
          "source_type",
          "fields",
          "guidance"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Clay Enterprise provider guide](https://deepline.com/docs/providers/clay/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.