# set_session_recording (/docs/mcp/tools/set-session-recording)

{/* Generated by scripts/sync-mcp-tools.mjs from happierleads-api. Do not edit: change src/routes/mcp/toolDocs.json there, or add content/mcp-notes/set_session_recording.mdx. */}

**Turn session recordings on or off** · Changes data

Turns session recordings on or off for one website. When on, visits are recorded so you can replay what a lead did; when off, no new recordings are made and existing ones stay until they expire.

| Connection | Account URL, team member URL or OAuth |
| --- | --- |

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `websiteId` | `string` | Yes | Website ID from list_websites. |
| `enabled` | `boolean` | Yes | true to record visits, false to stop. |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "set_session_recording",
  "title": "Turn session recordings on or off",
  "annotations": {
    "title": "Turn session recordings on or off",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites."
      },
      "enabled": {
        "type": "boolean",
        "description": "true to record visits, false to stop."
      }
    },
    "required": [
      "websiteId",
      "enabled"
    ]
  }
}
```
