record_spikes
Records burst-exact spike firing across up to 64 areas from FEAGI's Fire Ledger, returning per-area fire fractions, top voxels, runs, and optional modal patterns without sampling away silent bursts.
Instructions
Burst-exact firing of up to 64 areas over the next bursts bursts.
Reads FEAGI's Fire Ledger (/v1/burst_engine/fire_history): one frame per burst per
area, silent bursts included, so no burst is sampled away (monitor_activity and
get_fire_queue_detailed see about one burst in five). The areas are subscribed for
the recording and released after it. Starts now and returns when bursts bursts have
passed (max 20000); start a hold_stimulus(background=True) first to drive the areas.
A call waits bursts x the burst interval. One that would wait longer than about 50 s
is refused (MCP clients cut long tool calls): pass background=True to get a
recording_id at once and read the same summary with get_spike_recording once the
window has passed.
Returns a compact summary, never rows: per area fired_bursts, fire_fraction,
total_spikes (memory neurons included), memory_spikes and top_memory_neurons
(dynamic memory neurons have no voxel, so they never appear in top_voxels),
fire_kind_counts (spikes per fire kind name, e.g. stdp_eligible and
episodic_memory; the kind is stored per fired neuron in the Fire Ledger, so it is
exact for every recorded area), first_fire_burst/
last_fire_burst, fire runs (capped) and the top_voxels; plus
first_burst, last_burst, bursts_observed and gaps
(bursts with no ledger frame). Pass csv_path to write every spike as
burst,area_id,area_name,x,y,z,memory_neuron_id,fire_kind,fire_kind_name (fire_kind
is the raw value, fire_kind_name its name).
modal_summary=True adds modal_pattern to each area: a pattern is the set of voxels
that fired in one burst. It reports distinct_patterns, modal (the most common
pattern: its voxels, bursts, share_of_fired, share_of_observed, first/last
burst), empty_bursts and the empty_runs (runs of consecutive silent bursts, with
empty_run_count and longest_empty_run). Memory neurons have no voxel and are not
part of a pattern. gaps still means bursts with no ledger frame.
Args:
areas: Area ids, names or region ids (1-64 after region expansion)
bursts: Bursts to record (1-20000, default 200)
csv_path: Optional CSV file for the spike rows
max_runs: Fire runs listed per area (default 20; runs_truncated says if more exist;
run_count is always the full count)
background: Return a recording_id at once and record in the background
(default False)
modal_summary: Add the per-area modal firing pattern summary (default False)
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": {
"areas": "<areas>"
},
"name": "record_spikes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| areas | Yes | ||
| bursts | No | ||
| csv_path | No | ||
| max_runs | No | ||
| background | No | ||
| modal_summary | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||