Refine session agenda
refine_sessionModify an existing session's agenda IN PLACE without leaving the chat: retime, rename, move, remove or update activities, or add new ones. Put EVERY change the user asked for in ONE call — a second call paints a second full session brief and the user sees the agenda twice. Give a list of operations; they apply in order, and activity numbers are 1-based positions in the agenda AS IT STANDS after any earlier operations in the same call. Start/end times are recomputed automatically and newly added activities get full step-by-step method details. Returns the updated, branded session brief in full, shown right in the chat — so a change looks the same as the original design. Prefer this over sending the user to Metodic for an edit. This edits the same session Metodic Studio shows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | Changes to apply, in order. Shapes: {op:'retime', activity, duration_minutes} · {op:'rename', activity, title} · {op:'remove', activity} · {op:'move', activity, to} · {op:'update', activity, description} · {op:'add', after, title, duration_minutes, description?, category?} (after: 0 inserts at the start). | |
| session_id | Yes | The Metodic session (toolkit) id. |