read_window
Retrieve recent EEG samples from a session buffer, returning filtered or raw signal with optional channel selection and decimation to keep responses readable.
Instructions
Read the most recent samples from the buffer.
Returns filtered signal when a filter chain is set (see set_filters),
otherwise raw. Long windows are decimated to max_samples per channel so
the response stays readable -- for numeric work prefer get_band_power or
get_psd, which compute on the full-resolution data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seconds | No | How much recent signal to return. | |
| channels | No | Channel names to include. Defaults to all. | |
| filtered | No | Return the filtered buffer if a chain is set. False for raw. | |
| session_id | Yes | The session to read from. | |
| max_samples | No | Decimation cap per channel. Set include_data=False to skip the samples entirely and get only summary statistics. | |
| include_data | No | Whether to return the sample arrays at all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||