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

# prompt

Send a prompt to the LLM and get a structured response about the current page.

<CodeGroup>
  ```python Python theme={null}
  result = await page.prompt(
      "What is the main heading on this page?",
      schema={"heading": {"type": "string"}},
  )
  print(result)
  ```

  ```typescript TypeScript theme={null}
  const result = await page.prompt(
    "What is the main heading on this page?",
    { heading: { type: "string" } },
  );
  console.log(result);
  ```
</CodeGroup>

| Parameter | Type                               | Required | Description                                                                                               |
| --------- | ---------------------------------- | -------- | --------------------------------------------------------------------------------------------------------- |
| `prompt`  | `str` / `string`                   | Yes      | The question or instruction to send to the LLM about the current page.                                    |
| `schema`  | `dict` / `Record<string, unknown>` | No       | JSON schema that constrains the response shape. When provided, the LLM returns data matching this schema. |
| `model`   | `dict` / `Record<string, unknown>` | No       | LLM model configuration override. Use to select a different model for this call.                          |

Returns `dict | list | str | None` / `Record<string, unknown> | unknown[] | string | null`.
