> ## 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.

# LeadMagic: Role Finder

> Find who holds a job title at a company, given the title and the company name or domain. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Find who holds a job title at a company, given the title and the company name or domain.

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

## 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(
  'leadmagic_role_finder',
  {
    "job_title": "VP of Engineering",
    "company_name": "Example Corp"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run leadmagic_role_finder --input '{
  "job_title": "VP of Engineering",
  "company_name": "Example Corp"
}'
```

## 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": {
    "name": "Example",
    "profile_url": "https://example.com",
    "first_name": "Jane"
  }
}
```

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

## Input reference

Provide the company name or domain and the required job title, and retrieve the corresponding person.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.company_name` | `string` | No | — | Company name |
| `payload.company_domain` | `string` | No | — | Company domain |
| `payload.job_title` | `string` | Yes | — | Enter the job title you want to find in the company. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Provide the company name or domain and the required job title, and retrieve the corresponding person.",
    "properties": {
      "company_name": {
        "type": "string",
        "description": "Company name"
      },
      "company_domain": {
        "type": "string",
        "description": "Company domain"
      },
      "job_title": {
        "type": "string",
        "description": "Enter the job title you want to find in the company."
      }
    },
    "required": [
      "job_title"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.name` | `string` | No | — | — |
| `result.data.profile_url` | `string` | No | — | — |
| `result.data.first_name` | `string` | No | — | — |
| `result.data.last_name` | `string` | No | — | — |
| `result.data.message` | `string` | No | — | — |
| `result.data.company_name` | `string` | No | — | — |
| `result.data.company_website` | `string` | No | — | — |
| `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": {
          "name": {
            "type": "string"
          },
          "profile_url": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "company_name": {
            "type": "string"
          },
          "company_website": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `per_result` (per result).
* Estimated Deepline credits: `0.68` per pricing unit.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.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.