hold_stimulus
Force specified voxels in a brain area to fire on every burst for a set duration, with optional verification that each burst landed, and run it in the background while tracing or recording spikes.
Instructions
Hold voxels of one area firing on every burst for duration_s seconds.
Posts the stimulus on a wall-clock schedule at twice the burst rate and never reads the
burst counter or fire queue per burst, so no burst is skipped at 200 Hz (unlike a
run_stimulus_protocol hold, which also reads the ~100 KB fire queue per burst). With
verify the area's Fire Ledger frames are read back and every burst in
(first_post_burst, last_post_burst + 1] is checked for all held voxels: landed
reports checked/landed/missed bursts. The result is under 2 KB. Max 30 s in the
foreground (one tool call), 600 s with background=True.
background=True returns at once with a hold_id and keeps holding, so a trace or
record_spikes can run beside it; read the outcome with get_stimulus_hold. A
background hold keeps firing after the caller leaves; get_stimulus_hold(cancel=True)
stops it. Give related holds the same label to cancel them together with
cancel_stimulus(label=...) or extend them together with renew_stimulus(label=...).
start_delay_s delays the first post (a trace-relative start).
Args:
area: Area id or name
voxels: [[x, y, z], ...] to force-fire every burst
duration_s: Hold length in seconds (0 < d <= 30; <= 600 with background)
start_delay_s: Seconds to wait before the first post (default 0)
background: Return immediately and hold in the background (default False)
verify: Read back the ledger and report which bursts landed (default True)
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 post of the hold.
label: Optional group name (<= 64 characters) for cancel_stimulus and
renew_stimulus; several holds may share one label
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": {
"area": "<area>",
"voxels": "<voxels>",
"duration_s": "<duration_s>"
},
"name": "hold_stimulus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | ||
| label | No | ||
| verify | No | ||
| voxels | Yes | ||
| potential | No | ||
| background | No | ||
| duration_s | Yes | ||
| start_delay_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||