get_epoch_around_event
Extract the signal window around a past event to inspect stimulus responses or verify artifact placement. Works for events within the last minute.
Instructions
Extract the signal window around an event that already occurred.
Online epoching: use it to inspect the response to the most recent stimulus, or to verify that a stimulation artifact lands where you expect. The event must still be inside the ring buffer -- for a default 60 s buffer, that means within the last minute.
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>"
},
"name": "get_epoch_around_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tmax | No | Window end relative to the event, in seconds. | |
| tmin | No | Window start relative to the event, in seconds (negative = before). | |
| label | No | Event label to find. None takes the most recent event of any kind. | |
| filtered | No | Use the filtered buffer when a chain is set. | |
| occurrence | No | Which matching event; -1 is the most recent, -2 the one before it, 0 the earliest still in the log. | |
| session_id | Yes | The session to read from. | |
| max_samples | No | Decimation cap per channel. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||