# Change sets

> Updates individual sets and the rest timer in a live workout.

`WRITE change_sets`

Splot’s live workout card calls this tool when you tick a set, correct its figures, or change your rest. It updates the listed sets in the workout and returns the current session. Each set is identified by its exercise key and its index within that exercise.

## Inputs

| Input | Type | Description |
| --- | --- | --- |
| `id` | string | Required. The id of the workout under way. Up to 100 characters. |
| `changes` | array | Up to 100 items. |
| `session` | object |  |

### Changes

| Input | Type | Description |
| --- | --- | --- |
| `exercise` | string | Required. Up to 1,000 characters. |
| `index` | integer | Required. From 0 to 99. |
| `set` | object | Required. |

### Set

| Input | Type | Description |
| --- | --- | --- |
| `done` | boolean | Required. |
| `weight` | number | From -1,000 to 1,000. |
| `reps` | integer | From 0 to 10,000. |
| `seconds` | integer | From 0 to 86,400. |
| `right` | integer | From 0 to 86,400. |
| `at` | integer |  |

### Session

| Input | Type | Description |
| --- | --- | --- |
| `focus` | object |  |
| `rest` | object or null |  |
| `loggedAt` | integer |  |

## What your assistant is told

The tool's own instructions, word for word, as every assistant receives them.

> Used by Splot's live workout card to tick sets and change their figures as the person trains.
