# `update_script_preferences`

_Creator knowledge_

`write` `idempotent`

Update the brand's script preferences. Only the keys present in patch are replaced (a list key replaces the whole list); everything else is kept. formats must be taxonomy slugs (talking_head, voiceover_broll, listicle, tutorial, storytelling, reaction, pov, street_interview, day_in_life, podcast_clip, green_screen). defaultDurationSeconds 5-600 or null. Restrictions live elsewhere (add_restriction). Returns the full preferences document.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `brandId` | `string` | no |  |
| `patch` | `object` | yes |  |

## Example

### Prompt

```text
Change my default script duration to 30 seconds and prefer the listicle format.
```

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_script_preferences",
    "arguments": {
      "patch": {
        "pillars": [
          {
            "text": "example text"
          }
        ],
        "formats": [
          "talking_head"
        ]
      }
    }
  }
}
```

### curl

```bash
curl -X POST https://app.usedalea.ai/api/mcp/mcp \
  -H "Authorization: Bearer dalea_mcp_..." \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_script_preferences","arguments":{"patch":{"pillars":[{"text":"example text"}],"formats":["talking_head"]}}}}'
```
