56,641 tools
read_measurements
Return the full solved state: the voltage at every electrical node, and for every component its current (mA), the voltage across it, its pow…
measure
Act like a multimeter: return the voltage between two pins, from minus to. measure("r1.a", "r1.b") gives the voltage across r1; measure agai…
clear
Wipe the board. what:"wires" removes every wire but keeps the parts where they are, so you can rewire without re-placing. what:"all" removes…
undo
Undo the last change to the circuit (add, delete, wire, value change, and so on). Safe to call repeatedly to step further back. Does not aff…
redo
Redo the change that was just undone. Returns an error if there is nothing to redo (for example after you make a new edit, which clears the …
add_probe
Add a trace to the oscilloscope so a signal is plotted over time. Give a component id and whether to plot its "voltage" or "current". The sc…
read_scope
Read what the oscilloscope has captured: each trace with its most recent value and a downsampled series of (time, value) points over the vis…
show_scope
Show or hide the oscilloscope panel, and optionally clear its traces. Pass visible:false to hide it, or clear:true to remove every trace.
read_changes
What has changed on the board, and who changed it. Every readback carries a `revision`; pass the last one you saw as `since` and this return…
pause_simulation
Freeze the live simulation where it is. Voltages, currents and capacitor charges hold their present values instead of advancing, which is wh…
resume_simulation
Let a paused simulation run again from where it stopped, re-solving the circuit immediately so the readings catch up. Use this after pause_s…
reset_simulation
Discharge every capacitor and restart the simulation from time zero. Use this before demonstrating an RC charging curve so the capacitor sta…
load_preset
Load a ready-made starter circuit — parts, values and wiring in one call — instead of building a standard scenario piece by piece. Call with…
describe_sandbox
Read the rules and the current situation before you do anything else: which of the three stages the sandbox is in, the size of the box and w…
list_library
List everything that can be placed or used, in the three sections the student sees: design tools (select, draw line, erase, force, velocity)…
list_objects
Read everything in the box: every object with its id, type, position, angle, size, mass, bounciness, and — while a run is going — its veloci…
get_object
Everything about one object, including its full motion history so far (time, position and velocity sampled 20 times a second while the run i…
add_object
Place something in the box during the pre-simulation stage. type is one of the block or object types from list_library — blocks (ramp, platf…
draw_line
Draw a solid line or curve from a list of points, the same thing the student gets from the draw tool. The result is one fixed object that be…
move_object
Move an object to a new centre position, in metres. Only works in the pre-simulation stage, where objects float wherever you put them regard…
rotate_object
Set an object's angle in degrees counter-clockwise. Rotating a ramp turns the slope the other way; rotating a platform makes an incline out …
set_property
Change an object's mass, bounciness, size or surface material. This is the main teaching lever: double the mass and show that a frictionless…
set_friction
Switch Coulomb friction on or off for the whole sandbox. Off (the default) is the idealised frictionless case: a block on a slope always sli…
list_friction_pairs
The friction table: the coefficient for every pair of the five materials (rubber, wood, steel, concrete, ice), what each material is like, a…
apply_force
Attach a force to a movable object, to be applied when the run starts. mode:"start" is a single kick at t=0 and fx/fy are an impulse in newt…
set_velocity
Give a movable object a velocity for the start of the run. mode:"start" means it is already travelling at vx, vy the instant the run begins …
clear_motion
Remove the forces and/or the starting velocity you attached to an object, leaving the object itself in place. Use what:"forces" to drop ever…
remove_object
Delete one object from the box, freeing a slot against the 15-object cap. The floor and the side walls are part of the box and cannot be rem…
set_gravity
Change gravity in m/s². Earth is 9.81, the Moon 1.62, Jupiter 24.8, and 0 turns it off entirely so objects drift in straight lines. A memora…
select_design_tool
Switch the tool the student's pointer is holding: "select" to move things, "draw" to draw lines by hand, "erase" to click objects away, "for…
start_simulation
Leave the pre-simulation stage and start the run: gravity switches on, the forces and velocities you attached are applied, and everything fl…
pause_simulation
Freeze the run where it is without ending it, so you can talk about a specific moment — the instant of a collision, or the top of an arc. Ev…
resume_simulation
Continue a paused run from where it stopped, with every velocity intact.
end_simulation
End the run now and move to the post-simulation stage: everything freezes exactly where it is, and the readings stay available so you can ta…
retry_simulation
Put every object back exactly where it was just before the last run started, including the forces and velocities that were attached, and ret…
reset_simulation
Empty the box completely and return to the pre-simulation stage: every object, line, force and velocity is gone. Use retry_simulation instea…
read_simulation
The full live readout in one call: the stage and elapsed time, gravity, every object's position, velocity, speed, acceleration-producing for…
read_changes
What has changed in the sandbox, and who changed it. Every readback carries a `revision`; pass the last one you saw as `since` and this retu…
read_telemetry
The recorded motion of one object through the run: time, position and velocity sampled every 0.05 s. Use it to answer questions the live sta…
read_events
The run's event log: when the run started, every collision with the two objects involved and the closing speed at impact, the moment everyth…