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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"operations": "<operations>"
},
"name": "refine_session"
}
}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. |