# settings.set_fps

> Changes the project frame rate and rescales every time quantity.

Source: https://stuarty.com/docs/mcp/tools/edit/settings.set_fps/

Rescales every time quantity q of the project to round(q * new / old), then repairs what rounding can break: durations that became 0, the source range, overlaps, keyframes, caption words, fades and transitions. effective.adjusted lists every item changed by a repair. A rate is 1 to 120 fps with a denominator of 1 or 1001.

## Arguments

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `fps` | `any` | yes | "30", "30000/1001" or \{"num": 30000, "den": 1001\}; den is 1 or 1001, 1 to 120 fps. |

## Errors

- [`E_VALIDATION`](/docs/reference/error-codes#e_validation)
- [`E_INVALID_TIME`](/docs/reference/error-codes#e_invalid_time)

## Scope

Scope `edit`. The scope is the one an API key needs in network mode. Run `stuarty command:help settings.set_fps` for the same description from the binary, or call the [`command_help`](/docs/mcp/tools/command_help) tool.

## Next steps

- [The edit tool](/docs/mcp/tools/edit)
- [Batches, revisions and idempotency](/docs/agents/batches)

**As an MCP call**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "edit",
    "arguments": {
      "project_id": "prj_7k2m9x4q1b",
      "base_revision": 12,
      "operations": [
        {
          "op": "settings.set_fps",
          "args": {
            "fps": "24"
          }
        }
      ]
    }
  }
}
```

**As a batch file for the CLI**

```json
[
  {
    "op": "settings.set_fps",
    "args": {
      "fps": "24"
    }
  }
]
```

```bash
stuarty edit --project prj_7k2m9x4q1b --ops batch.json --json
```

**Over HTTP**

```bash
curl -X POST "http://127.0.0.1:7878/api/v1/projects/prj_7k2m9x4q1b/edit" \
  -H "Authorization: Bearer $STUARTY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "base_revision": 12,
  "operations": [
    {
      "op": "settings.set_fps",
      "args": {
        "fps": "24"
      }
    }
  ]
}'
```

The ids in the example are illustrative: read the real ones with `project_get`.
