> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

# Save cookie (detailed)

> Reference for the `Save cookie (detailed)` schema.

## Referenced In

* [saveCookie](/reference/schemas/savecookie)

## Fields

| Field     | Type    | Description                                                                                                 | Default |
| :-------- | :------ | :---------------------------------------------------------------------------------------------------------- | :------ |
| \$schema  | string  | Optional self-describing schema URI for linters                                                             | —       |
| name      | string  | Required. Name of the specific cookie to save. Pattern: `^[A-Za-z0-9_.-]+$`                                 | —       |
| variable  | string  | Optional. Environment variable name to store the cookie as JSON string. Pattern: `^[A-Za-z_][A-Za-z0-9_]*$` | —       |
| path      | string  | Optional. File path to save the cookie, relative to directory. Uses Netscape cookie format.                 | —       |
| directory | string  | Optional. Directory to save the cookie file. If not specified, uses output directory.                       | —       |
| overwrite | boolean | Optional. Whether to overwrite existing cookie file.                                                        | `false` |
| domain    | string  | Optional. Specific domain to filter the cookie by (optional).                                               | —       |

## Examples

```json
{
  "$schema": "example",
  "name": "example",
  "variable": "example",
  "path": "example",
  "directory": "example",
  "overwrite": false,
  "domain": "example"
}
```