run_stimulus_protocol
Run a timed stimulus sequence and record per-burst firing in one call, combining stimulation and monitoring for protocol experiments.
Instructions
Present a timed stimulus sequence and record per-burst firing in one call.
Replaces running a hold (stimulate_area_batch with bursts) and a
monitor concurrently. On each new burst counter value all of a step's
stimuli are posted as ONE manual_stimulation payload (every area fires
on the same burst), then the fire queue is read and each distinct sample
timestep is recorded once, keeping only record_areas. Total bursts
are capped at 30 s of bursts. Memory-area neurons appear at (0,0,0).
Args:
steps: List of {"bursts": N, "stimuli": [{"area_id": str, "coordinates": [[x, y, z], ...]}], "label": optional str}.
Empty stimuli is a rest step.
steps_file: Path to a JSON file holding the same list as steps (use it for long
protocols, such as replaying recorded values, so the steps cost no tokens). Pass
steps or steps_file, not both. Errors name the problem: missing file,
invalid JSON, not a list, empty list, or an item that is not an object.
record_areas: Area ids whose firing is recorded (required)
tail_bursts: Bursts to record after the last step (default 0)
mode: Stimulation mode (default force_fire)
repeat: Run the step list this many times in a row (default 1); the tail
follows the last repeat. steps in the result then has one row per
repeated step.
compact: Per-step, per-area fire counts instead of per-voxel lines: each
steps row gets fires (area -> firing_bursts, neuron_fires),
areas keeps only firing_bursts, and bursts is omitted.
potential: Membrane potential the forced neurons fire with (finite, > 0). Default None =
the server's own (100). It is a probe that bypasses threshold and refractory; a
neuron that already fired naturally in that burst keeps its own potential. Mechanisms
that read firing potential (MP-driven PSP, graded modulator drivers) see this value;
outputs that read strength clamp or scale it themselves. If FEAGI does not apply it
(older version) the call returns an error; applied_potential is returned when
reported.
One value for every stimulus of every step.
Returns:
steps (label, first/last posted burst, bursts posted), areas
(firing_bursts and per-voxel voxel_counts), bursts (only
bursts where a recorded area fired: burst, step, areas),
bursts_missed (window bursts no read observed) and success.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_stimulus_protocol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | force_fire | |
| steps | No | ||
| repeat | No | ||
| compact | No | ||
| potential | No | ||
| steps_file | No | ||
| tail_bursts | No | ||
| record_areas | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||