Skip to Content
PalpableDocs
For developers

API reference

Every way to reach Palpable from outside the app, generated from the source: all 114 MCP tools with their parameters, every project WebSocket message with its error and close codes, and the public HTTP endpoints.

This page lists every way to talk to Palpable from your own code or AI app: the tools of the MCP server, the messages of a project's WebSocket API, and the HTTP endpoints, including saved readings. It is read from the code that answers them, so it is always current. For how to use each one, and for webhooks, see the guides.

MCP tools

The MCP server at https://palpable.technology/mcp offers 114 tools, 34 of them read-only. How to connect, sign in and confirm is in MCP server.

  • Read-only is the tool's readOnlyHint: it changes nothing at all.
  • Asks first says whether the person must say yes before it runs: always, or only for some calls (destructiveHint is true for both). These tools also take confirm (boolean), for an app that cannot ask through MCP elicitation.
  • Every tool also takes an optional projectId (UUID). The project this call is about. It is listed below only where a tool gives it its own meaning.
  • Each description here is its first sentence. The full text is in the server's tools/list.

Projects

ToolWhat it doesRead-onlyAsks first
extend_project_to_boardOnly when the person explicitly asks to also show or run this current project on a named board, extend this already running project to that board.NoNo
replace_project_boardWhen the person asks to swap, replace or move this project from one of its boards to another board, replace that board.NoNo
get_projectsLook up the user's projects (id, name, icon, color, enabled).YesNo
update_projectUpdate an existing project.NoNo
delete_projectDelete a project.NoAlways
create_projectCreate a new project.NoNo
get_project_purposeRead what a project is FOR — its subject ("tomatoes"), the acceptable range per reading (temperature 18–29 °C) and whether that is PAL's assumption ('inferred') or the user's word ('user').YesNo
set_project_purposeRecord what a project is for, so displays and the day's story can say "Too hot for tomatoes" instead of a generic band word.NoNo
set_observeAdjust a project's Observe page — the page that says what has been going on with the project, composed by rule from its history.NoNo
get_day_storyShow the story of a day in a project — the notable things that happened (too hot for the purpose, a sensor gone quiet, a script that stopped, an unusual reading), each with its chart — as a card in the chat.NoNo
set_project_palSave whether this project gets its own Onboard PAL (a small PAL living on one of its devices that knows only this project), and how it is set up: 1–3 names, each ONE word from the project then 'PAL' (Shelf PAL, never Shelf Friend PAL), personality preset, checkIn, beforeActing, which credit savings fit this project, and the ONLY actions it may take.NoNo
export_dayMake a downloadable file of one day in a project — every sensor's readings minute by minute plus that day's story — and show it as a file card the user can tap to download.NoNo
get_build_reportThe open project's last builds, from the record each build keeps: every round's verdict, the check that stopped it and its own words, what the play-through saw, the fallback's tries, what the board said, which skill and template it used, how long it took and what it cost.YesNo

extend_project_to_board

Only when the person explicitly asks to also show or run this current project on a named board, extend this already running project to that board.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
deviceIdstringYesThe device UUID of the board explicitly requested by the person.

replace_project_board

When the person asks to swap, replace or move this project from one of its boards to another board, replace that board.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
fromDeviceIdstringYesThe device UUID of the project board being replaced.
toDeviceIdstringYesThe device UUID of the board that takes its place.

get_projects

Look up the user's projects (id, name, icon, color, enabled).

Read-only: Yes. Asks first: No.

No other parameters.

update_project

Update an existing project.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringYesThe project ID to update
namestringNoNew name
descriptionstringNoNew description
iconstringNoNew icon
colorstringNoNew color hex
enabledbooleanNoEnable or disable the project
thing_idstringNoAssociated thing ID

delete_project

Delete a project.

Read-only: No. Asks first: Always.

ParameterTypeRequiredDescription
projectIdstringYesThe project ID to delete

create_project

Create a new project.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
namestringYesProject name
descriptionstringNoProject description
iconstringNoEmoji icon (default 📁)
colorstringNoHex color (default #8b5cf6)
thing_idstringNoAssociated thing/device group ID
deviceIdsstring[]NoIDs of the devices this project runs on — the board you are deploying to.

get_project_purpose

Read what a project is FOR — its subject ("tomatoes"), the acceptable range per reading (temperature 18–29 °C) and whether that is PAL's assumption ('inferred') or the user's word ('user').

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringNoProject id.

set_project_purpose

Record what a project is for, so displays and the day's story can say "Too hot for tomatoes" instead of a generic band word.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringNoProject id.
subjectstringYesWhat is looked after, as the user would say it: "tomatoes", "the vaccine fridge".
assumptionstringYesOne sentence the user can read: "Tomatoes like 18–29 °C by day."
source"inferred" | "user"Yes'inferred' for your assumption, 'user' for the user's own word.
rangesobjectYesPer capability: { "temperature": { "min": 18, "max": 29, "unit": "°C" } }.

set_observe

Adjust a project's Observe page — the page that says what has been going on with the project, composed by rule from its history.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringNoProject id.
kind"watch" | "tell" | "do" | "play" | "companion" | "ambient"No
labelsobjectNoBy reading, as "moduleId:capability": { "modulino-joystick:x": "Mod wheel" }.
hidestring[]NoReadings to leave out, as "moduleId:capability".
leadstring[]NoUp to two figures to lead with, by reading ("moduleId:capability") or by their caption.
gameobjectNoHow to read a game.
sentenceobjectNoA sentence to show in place of the composed one.
nowobjectNoWhat the project is right now, in its own words, and its one button.
voiceobjectNoHow the page talks: a character ("small, sleepy, polite") or plain.
badgesobject[]NoUp to 8 badges to earn.
careobject[]NoUp to 4 lines of care for a pet: what was done last, how long in a state.
figureobject | nullNoA toy's one figure; null when it has none worth showing.

get_day_story

Show the story of a day in a project — the notable things that happened (too hot for the purpose, a sensor gone quiet, a script that stopped, an unusual reading), each with its chart — as a card in the chat.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringNoProject id.
daystringNoYYYY-MM-DD in the user's timezone.

set_project_pal

Save whether this project gets its own Onboard PAL (a small PAL living on one of its devices that knows only this project), and how it is set up: 1–3 names, each ONE word from the project then 'PAL' (Shelf PAL, never Shelf Friend PAL), personality preset, checkIn, beforeActing, which credit savings fit this project, and the ONLY actions it may take.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringNoProject id.
fitsbooleanYes
reasonstringYesOne sentence: why a PAL fits this project or does not.
source"inferred" | "user"Yes
namesstring[]No1–3 names, each ONE capitalised word from the project then PAL, e.g. ["Shelf PAL","Basil PAL","Pocket PAL"].
personalityobjectNo
checkIn"never" | "4h" | "1h" | "15m"No
beforeActing"ask" | "act_then_tell"No
savingsobjectNo
character"home-lights" | "tamagotchi"NoOnly when the person asked for an assistant, a tamagotchi or a character: the character the PAL plays (it then speaks as that skill's persona).
actionsobject[]No

export_day

Make a downloadable file of one day in a project — every sensor's readings minute by minute plus that day's story — and show it as a file card the user can tap to download.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringNoProject id.
daystringNoYYYY-MM-DD in the user's timezone.
format"csv" | "json"NoDefault csv.

get_build_report

The open project's last builds, from the record each build keeps: every round's verdict, the check that stopped it and its own words, what the play-through saw, the fallback's tries, what the board said, which skill and template it used, how long it took and what it cost.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringNoProject ID (optional; defaults to the open project)
countnumberNoHow many of the latest builds (1 to 5).

Boards and parts

ToolWhat it doesRead-onlyAsks first
get_devicesLook up the user's devices with their status and connected modules.YesNo
get_deviceGet detailed information about a specific device.YesNo
edit_deviceUpdate a device's name or settings.NoNo
delete_deviceDelete a device.NoAlways
confirm_moduleConfirm which hardware module is connected at an ambiguous I2C address.NoNo
check_firmware_updatesCheck for available firmware updates.YesNo
scan_modulesRun a fresh I2C scan of every connected board to check its modules.NoNo
update_board_softwareStart the newest software update on one of the person's boards — what the Update button does.NoNo
calibrate_sensorCalibrate one reading on one board in two steps, for a sensor that reads wrong ("my scale reads wrong").NoNo
set_module_portRecord which port a GPIO-attached part is plugged into — a Grove part that is not I2C (Chainable RGB LED, 4-Digit Display, LED Bar, Circular LED, RGB LED Stick/Ring, DHT11/DHT22).NoNo
scan_bluetooth_sensorsPassively observe nearby BTHome v2 Bluetooth sensor advertisements for 1–20 seconds (default 10).NoNo
watch_digital_pinObserve both GPIO edges for a bounded interval, with optional kernel debounce, input pull and active-low interpretation.NoNo
inspect_attached_hardwareRead V4L2 device/subdevice names, ALSA card IDs, USB VID/PID, product and serial strings and the HAT EEPROM identity from the connected board.NoNo
read_digital_pinRead a header GPIO on the connected board. pin is the board GPIO number (BCM on Raspberry Pi), never a physical header position. pull chooses the input bias; activeLow reverses the electrical level.NoNo
write_digital_pinDrive and retain a header GPIO output.NoAlways
write_pwm_channelSet an exported kernel hardware PWM channel on the connected board.NoAlways
read_analog_channelRead one single-ended ADS1115 ADC input in volts.NoNo
restart_boardRestart (reboot) a board, the same as Restart on its Manage page.NoSome calls
set_cameraTurn a board's camera on or off.NoSome calls
take_photoTake a photo with a board's camera and show it to the person in this chat.NoNo
look_at_photoLook at a photo or video clip a board's camera took (it SENDS THE PHOTO TO THE AI; for a clip, a few frames from it, never the video).NoSome calls

get_devices

Look up the user's devices with their status and connected modules.

Read-only: Yes. Asks first: No.

No other parameters.

get_device

Get detailed information about a specific device.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
deviceIdstringYesThe device ID

edit_device

Update a device's name or settings.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
deviceIdstringYesThe device ID
namestringNoNew name

delete_device

Delete a device.

Read-only: No. Asks first: Always.

ParameterTypeRequiredDescription
deviceIdstringYesThe device ID

confirm_module

Confirm which hardware module is connected at an ambiguous I2C address.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
deviceIdstringYesThe device UUID
carrierIdstringNoThe base (carrier) the board is seated on, by catalogue id: "seeed-xiao-expansion-base" (Seeed Studio Expansion Board Base for XIAO).
i2cAddressnumberNoThe I2C address (decimal) where the ambiguous device was detected.
moduleIdstringNoThe confirmed module ID (e.g., "modulino-pixels")
boardVariantstringNoThe specific breakout board variant ID (e.g. "seeed-grove-bme280", "adafruit-bme280", "sparkfun-bme280"), especially when using an adapter cable or when multiple breakouts share the same sensor IC.

check_firmware_updates

Check for available firmware updates.

Read-only: Yes. Asks first: No.

No other parameters.

scan_modules

Run a fresh I2C scan of every connected board to check its modules.

Read-only: No. Asks first: No.

No other parameters.

update_board_software

Start the newest software update on one of the person's boards — what the Update button does.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
deviceIdstringYesThe board id from get_devices.

calibrate_sensor

Calibrate one reading on one board in two steps, for a sensor that reads wrong ("my scale reads wrong").

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
deviceIdstringYesThe board (devices.id).
moduleIdstringYese.g. "qwiic-nau7802"
capabilitystringYese.g. "weight"
step"tare" | "reference"Yes
referenceValuenumberNoFor step "reference": the true value now on the sensor.

set_module_port

Record which port a GPIO-attached part is plugged into — a Grove part that is not I2C (Chainable RGB LED, 4-Digit Display, LED Bar, Circular LED, RGB LED Stick/Ring, DHT11/DHT22).

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
deviceIdstringYesThe board (devices.id).
moduleIdstringYesThe catalogue id of the part, e.g. "grove-4-digit-display".
carrierstringNoThe board the part plugs into, e.g. "grove-base-hat-pi".
portstringNoThe port on that carrier, e.g. "D5".
pinsobjectNoInstead of carrier/port: signal → GPIO number, e.g. {"clk": 20, "dio": 21}.
supplyV3.3 | 5NoWith "pins": the supply the part is wired to.
countnumberNoLEDs on the strip / modules in the chain, when not the default.

scan_bluetooth_sensors

Passively observe nearby BTHome v2 Bluetooth sensor advertisements for 1–20 seconds (default 10).

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
durationSecondsnumberNo
deviceIdstringNoThe board (devices.id from get_devices).

watch_digital_pin

Observe both GPIO edges for a bounded interval, with optional kernel debounce, input pull and active-low interpretation.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
pinnumberYes
durationMsnumberYes
debounceMsnumberNo
pull"none" | "up" | "down"No
activeLowbooleanNo
deviceIdstringNoThe board (devices.id from get_devices).

inspect_attached_hardware

Read V4L2 device/subdevice names, ALSA card IDs, USB VID/PID, product and serial strings and the HAT EEPROM identity from the connected board.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
deviceIdstringNoThe board (devices.id from get_devices).

read_digital_pin

Read a header GPIO on the connected board. pin is the board GPIO number (BCM on Raspberry Pi), never a physical header position. pull chooses the input bias; activeLow reverses the electrical level.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
pinnumberYes
pull"none" | "up" | "down"No
activeLowbooleanNo
deviceIdstringNoThe board (devices.id from get_devices).

write_digital_pin

Drive and retain a header GPIO output.

Read-only: No. Asks first: Always.

ParameterTypeRequiredDescription
pinnumberYes
valuebooleanYes
activeLowbooleanNo
deviceIdstringNoThe board (devices.id from get_devices).

write_pwm_channel

Set an exported kernel hardware PWM channel on the connected board.

Read-only: No. Asks first: Always.

ParameterTypeRequiredDescription
chipnumberYes
channelnumberYes
periodNsnumberYes
dutyNsnumberYes
enabledbooleanYes
deviceIdstringNoThe board (devices.id from get_devices).

read_analog_channel

Read one single-ended ADS1115 ADC input in volts.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
addressnumberYes
channelnumberYes
deviceIdstringNoThe board (devices.id from get_devices).

restart_board

Restart (reboot) a board, the same as Restart on its Manage page.

Read-only: No. Asks first: Some calls.

ParameterTypeRequiredDescription
deviceIdstringNoThe board (devices.id from get_devices).

set_camera

Turn a board's camera on or off.

Read-only: No. Asks first: Some calls.

ParameterTypeRequiredDescription
onbooleanYestrue to turn the camera on, false to turn it off.
cameraIdstringNoThe camera id from the board (e.g. csi:/dev/media0).
deviceIdstringNoThe board (devices.id from get_devices).

take_photo

Take a photo with a board's camera and show it to the person in this chat.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
cameraIdstringNoThe camera id from the board (e.g. csi:/dev/media0).
deviceIdstringNoThe board (devices.id from get_devices).

look_at_photo

Look at a photo or video clip a board's camera took (it SENDS THE PHOTO TO THE AI; for a clip, a few frames from it, never the video).

Read-only: No. Asks first: Some calls.

ParameterTypeRequiredDescription
projectIdstringNoThe project the photo belongs to.
captureIdstringYesThe photo id (snap_…) or clip id (clip_…) on the board.
deviceIdstringNoThe board (devices.id).
questionstringNoWhat to look for (optional).

Readings and recordings

ToolWhat it doesRead-onlyAsks first
get_sensor_dataGet the latest reading each module on a device reported, with how old it is.YesNo
get_sensor_historyRead the readings a project has SAVED over time (its saved data: one value per interval, as the project's saving setting says — e.g. the hourly average).YesNo
start_recordingStart recording sensor data from the connected device.NoNo
stop_recordingStop the active recording session.NoNo
list_recordingsList all saved recording sessions with metadata (duration, size, module list).YesNo
delete_recordingPermanently delete a recording session.NoAlways
delete_all_recordingsPermanently delete all recording sessions.NoAlways
replay_recordingReplay a recorded session — clients (app, display previews) see sensor data as if hardware were live.NoNo
analyze_recordingAnalyze a recording session and return a statistical digest with recommendations.YesNo
get_recording_data_windowGet a time-windowed slice of raw sensor data from a recording for detailed investigation.YesNo
get_system_graphGet the current system wiring graph: which modules are connected, which scripts read/write them, which variables are shared, and which modules are unwired (available but not in any script).YesNo

get_sensor_data

Get the latest reading each module on a device reported, with how old it is.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
deviceIdstringYesThe device ID
sensorTypestringNoOptional: narrow to one module — its module id, its name, or a reading key like "temperature"

get_sensor_history

Read the readings a project has SAVED over time (its saved data: one value per interval, as the project's saving setting says — e.g. the hourly average).

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringNoProject ID (default: the open project)
moduleIdstringNoOnly this module, e.g. qwiic-scd41
capabilitystringNoOnly this reading, e.g. co2 or temperature
range"day" | "week" | "month" | "year" | "all"NoHow far back (default week; never older than the project keeps)
limitnumberNoMost recent values per reading to return (default 100, max 500)

start_recording

Start recording sensor data from the connected device.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
namestringYesHuman-readable session name, e.g. "greenhouse-afternoon"

stop_recording

Stop the active recording session.

Read-only: No. Asks first: No.

No other parameters.

list_recordings

List all saved recording sessions with metadata (duration, size, module list).

Read-only: Yes. Asks first: No.

No other parameters.

delete_recording

Permanently delete a recording session.

Read-only: No. Asks first: Always.

ParameterTypeRequiredDescription
sessionIdstringYesRecording session ID to delete

delete_all_recordings

Permanently delete all recording sessions.

Read-only: No. Asks first: Always.

No other parameters.

replay_recording

Replay a recorded session — clients (app, display previews) see sensor data as if hardware were live.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
sessionIdstringYesRecording session ID to replay
speednumberNoPlayback speed multiplier (default 1 = real-time, 10 = 10x)

analyze_recording

Analyze a recording session and return a statistical digest with recommendations.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
sessionIdstringYesRecording session ID to analyze

get_recording_data_window

Get a time-windowed slice of raw sensor data from a recording for detailed investigation.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
sessionIdstringYesRecording session ID
startMsnumberYesStart time in ms (from recording start)
endMsnumberYesEnd time in ms (from recording start)
capabilitystringNoOptional: filter to specific "moduleId:capability" key
maxEventsnumberNoMax events to return (default 500)

get_system_graph

Get the current system wiring graph: which modules are connected, which scripts read/write them, which variables are shared, and which modules are unwired (available but not in any script).

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringNoOptional: scope scripts to one project.

Scripts

ToolWhat it doesRead-onlyAsks first
deploy_scriptCreate or update a script (TypeScript program).NoNo
stop_scriptStop a running script.NoNo
start_scriptStart a stopped script.NoNo
get_scriptsList scripts for the current project.YesNo
get_script_stateRead a script's persisted state (high scores, game progress, etc.).YesNo
get_script_logsGet recent logs from a running script on the Pi.YesNo
update_script_paramsUpdate a script's parameter values without redeploying code.NoNo

deploy_script

Create or update a script (TypeScript program).

Read-only: No. Asks first: No. Runs a model and uses the account's credits.

ParameterTypeRequiredDescription
projectIdstringYesProject ID to scope the script to
namestringYesShort name for the script (e.g. "Simon Game", "Theremin")
codestringYesTypeScript source code.
descriptionstringNoBrief description of what the script does
runLocationstringNoWhere to run: "cloud" (default, has PAL/display access), "pi" (offline-safe, low latency), or "both"
scriptIdstringNoExisting script ID to update (omit to create new)
requiredInputDeviceIdsstring[]NoHasura device.id values of explicit input producers this behavior requires.
targetDeviceIdsstring[]NoOptional Hasura device.id list to pin the script to specific Pis.

stop_script

Stop a running script.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
scriptIdstringYesID of the script to stop

start_script

Start a stopped script.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
scriptIdstringYesID of the script to start

get_scripts

List scripts for the current project.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringNoProject ID (optional; defaults to the open project)

get_script_state

Read a script's persisted state (high scores, game progress, etc.).

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
scriptIdstringYesScript ID

get_script_logs

Get recent logs from a running script on the Pi.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
scriptIdstringYesScript ID
limitnumberNoMax log entries to return (default 20, max 100)

update_script_params

Update a script's parameter values without redeploying code.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
scriptIdstringYesScript ID
paramsobjectYesKey-value pairs of parameter values to update

Views and screens

ToolWhat it doesRead-onlyAsks first
display_deployAdapt a project experience for one physical OLED/e-ink SCREEN (SSD1306, SH1106, etc.).NoNo
display_get_blocksGet the current block document for a display.YesNo
display_configureReconfigure display dimensions.NoNo
display_rotateSet how a physical screen is MOUNTED on a board: 0, 90, 180 or 270 degrees clockwise.NoNo
deploy_viewPersist a project's <pal-*> view.NoNo
get_viewRead a project's view (source + status).YesNo
set_view_urlPoint a view at an external URL — the URL IS the app, an equal alternative to a PAL-generated dashboard.NoNo
list_viewsList all views in a project (id, name, status, link_status).YesNo
fork_viewMake an independent copy of a view so it can diverge from its source (Model A).NoNo
get_view_versionsList the saved version history for a view (most recent first), for rollback.YesNo
rollback_viewRestore a view to an earlier saved version.NoNo
generate_viewDesign a NEW named dashboard/display for the project as a <pal-*> view.NoNo
update_viewChange a project's screen views per an instruction.NoNo

display_deploy

Adapt a project experience for one physical OLED/e-ink SCREEN (SSD1306, SH1106, etc.).

Read-only: No. Asks first: No. Runs a model and uses the account's credits.

ParameterTypeRequiredDescription
projectIdstringNoProject this physical surface belongs to.
displayIdstringNoDisplay ID from physical_context (e.g. "i2c:0x3c").
sourceViewIdstringNoCanonical project view this panel adapts.
codestringNoA React component (TSX) composing readouts and scenes, or a GLSL fragment shader when codeFormat is "glsl".
codeFormat"html" | "glsl"NoFormat of code.
viewsobject[]NoProject mode (no displayId): the views to write, each for ONE of the board's screens, named by its display id.
kitstringNoProject mode: the project kit — named exports (the character's states, icons, formatting, palette) that more than one view uses.
blocksobjectNoLEGACY.

display_get_blocks

Get the current block document for a display.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
displayIdstringNoDisplay ID.

display_configure

Reconfigure display dimensions.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
displayIdstringYesDisplay ID (e.g. "i2c:0x3c")
heightnumberYesDisplay height in pixels (32, 64, or 128)
widthnumberNoDisplay width in pixels (default 128)

display_rotate

Set how a physical screen is MOUNTED on a board: 0, 90, 180 or 270 degrees clockwise.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
displayIdstringYesDisplay ID (e.g. "i2c:0x3c")
rotation0 | 90 | 180 | 270YesDegrees clockwise
deviceIdstringNoThe board (device id) the screen is on.

deploy_view

Persist a project's <pal-*> view.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringYesProject to scope the view to
viewIdstringNoExisting view to overwrite (omit to create a new named view)
namestringNoHuman name for the view (PAL-suggested)
sourcestringYesThe authored <pal-*> view doc
compiledstringNoGate-validated normalized doc
statusstringYes"valid" | "error" | "draft"
errorstringNoGate error text when status=error
parentViewIdstringNoSource view when this is a fork
linkStatusstringNo"linked" | "forked"

get_view

Read a project's view (source + status).

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringYesProject ID
viewIdstringNoSpecific view (optional)
surfacestringNo"phone" (default), "kit", or a display id such as "i2c:0x3c" for that screen's own view

set_view_url

Point a view at an external URL — the URL IS the app, an equal alternative to a PAL-generated dashboard.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringYesProject to scope the view to
urlstringYesThe external URL (http/https)
namestringNoA short name for the view
viewIdstringNoExisting view to repoint (omit to create a new one)

list_views

List all views in a project (id, name, status, link_status).

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringYesProject ID

fork_view

Make an independent copy of a view so it can diverge from its source (Model A).

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
viewIdstringYesView to fork
namestringNoName for the forked view
displayIdstringNoForking a screen's own view: the OTHER screen (on the same board) the copy becomes the view of.

get_view_versions

List the saved version history for a view (most recent first), for rollback.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
viewIdstringYesView ID

rollback_view

Restore a view to an earlier saved version.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
viewIdstringYesView to roll back
versionIdstringNoSpecific version to restore (optional — defaults to latest snapshot)

generate_view

Design a NEW named dashboard/display for the project as a <pal-*> view.

Read-only: No. Asks first: No. Runs a model and uses the account's credits.

ParameterTypeRequiredDescription
projectIdstringYesProject to build the view for
intentstringYesWhat the view is for, in the user's words
namestringNoA short name for the new view

update_view

Change a project's screen views per an instruction.

Read-only: No. Asks first: No. Runs a model and uses the account's credits.

ParameterTypeRequiredDescription
projectIdstringYesProject whose view to edit
viewIdstringNoThe view to edit (the one currently in scope)
instructionstringYesWhat to change
surfacestringNoA display id such as "i2c:0x3c", or "all".

Variables, things, rooms and Wi-Fi

ToolWhat it doesRead-onlyAsks first
get_thingsGet the user's things.YesNo
create_thingCreate a new thing (device group).NoNo
update_thingUpdate an existing thing (device group).NoNo
delete_thingDelete a thing (device group).NoAlways
get_variablesGet the user's variables.YesNo
create_variableCreate a new variable.NoNo
update_variableUpdate an existing variable.NoNo
delete_variableDelete a variable.NoAlways
get_wifi_networksGet the user's wifi_networks.YesNo
create_wifi_networkCreate a new WiFi network.NoNo
update_wifi_networkUpdate an existing WiFi network.NoNo
delete_wifi_networkDelete a WiFi network.NoAlways
get_matter_roomsGet the user's matter_rooms.YesNo
create_matter_roomCreate a new Matter room.NoNo
update_matter_roomUpdate an existing Matter room.NoNo
delete_matter_roomDelete a Matter room.NoAlways
add_devices_to_matter_roomAdd one or more Matter devices to an existing room.NoNo
remove_devices_from_matter_roomRemove one or more Matter devices from a room.NoNo
share_with_smart_homeOpen a fresh Matter commissioning window on a Pi so the user can pair it with Apple Home, Google Home, or Alexa.NoNo

get_things

Get the user's things.

Read-only: Yes. Asks first: No.

No other parameters.

create_thing

Create a new thing (device group).

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
namestringYesThing name
descriptionstringNoDescription
iconstringNoEmoji icon (default 🤖)
colorstringNoHex color (default #3b82f6)
device_idsstring[]NoArray of device IDs to group

update_thing

Update an existing thing (device group).

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
thingIdstringYesThe thing (device group) ID to update
namestringNoNew name
descriptionstringNoNew description
iconstringNoNew icon
colorstringNoNew color hex
device_idsstring[]NoUpdated device IDs

delete_thing

Delete a thing (device group).

Read-only: No. Asks first: Always.

ParameterTypeRequiredDescription
thingIdstringYesThe thing (device group) ID to delete

get_variables

Get the user's variables.

Read-only: Yes. Asks first: No.

No other parameters.

create_variable

Create a new variable.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
namestringYesVariable name (unique per thing)
typestringYesType: number, boolean, or string
valueobjectNoInitial value
thing_idstringNoThing ID this variable belongs to

update_variable

Update an existing variable.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
variableIdstringYesThe variable ID to update
namestringNoNew name
valueobjectNoNew value

delete_variable

Delete a variable.

Read-only: No. Asks first: Always.

ParameterTypeRequiredDescription
variableIdstringYesThe variable ID to delete

get_wifi_networks

Get the user's wifi_networks.

Read-only: Yes. Asks first: No.

No other parameters.

create_wifi_network

Create a new WiFi network.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
ssidstringYesWiFi network name (SSID)
passwordstringYesWiFi password
countrystringNoCountry code (default US)
prioritynumberNoPriority (higher = preferred, default 100)

update_wifi_network

Update an existing WiFi network.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
wifi_networkIdstringYesThe WiFi network ID to update
ssidstringNoNew SSID
passwordstringNoNew password
countrystringNoNew country code
prioritynumberNoNew priority

delete_wifi_network

Delete a WiFi network.

Read-only: No. Asks first: Always.

ParameterTypeRequiredDescription
wifi_networkIdstringYesThe WiFi network ID to delete

get_matter_rooms

Get the user's matter_rooms.

Read-only: Yes. Asks first: No.

No other parameters.

create_matter_room

Create a new Matter room.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
namestringYesRoom name (e.g. "Living Room", "Kitchen", "Mood Lights").
device_namesobjectYesArray of Matter device names to include in this room.
iconstringNoOptional emoji to represent the room (e.g. "🛋️", "🍳", "🛏️").

update_matter_room

Update an existing Matter room.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
matter_roomIdstringYesThe Matter room ID to update
namestringNoNew room name
device_namesobjectNoReplace the room's device list.
iconstringNoNew emoji icon

delete_matter_room

Delete a Matter room.

Read-only: No. Asks first: Always.

ParameterTypeRequiredDescription
matter_roomIdstringYesThe Matter room ID to delete

add_devices_to_matter_room

Add one or more Matter devices to an existing room.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
namestringYesThe room name.
device_namesstring[]YesDevice names to add.

remove_devices_from_matter_room

Remove one or more Matter devices from a room.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
namestringYesThe room name.
device_namesstring[]YesDevice names to remove.

share_with_smart_home

Open a fresh Matter commissioning window on a Pi so the user can pair it with Apple Home, Google Home, or Alexa.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
deviceIdstringNoHasura device.id UUID of the Pi to share.
deviceNamestringNoAlternative to deviceId — match by the Pi's name (e.g. "Cedar").

Rules

ToolWhat it doesRead-onlyAsks first
create_inference_ruleCreate a real-time inference rule that watches sensor data continuously (zero LLM cost per evaluation).NoNo
list_inference_rulesList all inference rules with their status, trigger counts, and configuration.YesNo
update_inference_ruleUpdate an existing inference rule.NoNo
delete_inference_ruleDelete an inference rule permanently.NoAlways
get_inference_digestGet a summary of inference rule activity over the last 24 hours.YesNo
review_ambiguous_eventsGet queued ambiguous sensor events that inference rules flagged for PAL review.NoNo
test_inference_ruleDry-run an inference rule against recorded sensor data to see when it would have fired.YesNo
test_rule_against_historyReplay a DRAFT inference rule over the day history to see when it WOULD have fired — e.g. "would a vent rule at 30 °C have caught last night?".NoNo

create_inference_rule

Create a real-time inference rule that watches sensor data continuously (zero LLM cost per evaluation).

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
idstringYesUnique rule ID (e.g., "heat_alert", "presence_detection")
namestringYesHuman-readable name
conditionsobject[]YesAll conditions must be true (AND).
actionsobject[]YesActions to execute when all conditions are met.
timeWindowobjectNoOptional: only evaluate during these hours/days
cooldownMsnumberNoMinimum ms between triggers (default 60000 = 1 min)

list_inference_rules

List all inference rules with their status, trigger counts, and configuration.

Read-only: Yes. Asks first: No.

No other parameters.

update_inference_rule

Update an existing inference rule.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
ruleIdstringYesRule ID to update
enabledbooleanNo
conditionsany[]NoReplacement conditions array
actionsany[]NoReplacement actions array
cooldownMsnumberNo
timeWindowobjectNo

delete_inference_rule

Delete an inference rule permanently.

Read-only: No. Asks first: Always.

ParameterTypeRequiredDescription
ruleIdstringYesRule ID to delete

get_inference_digest

Get a summary of inference rule activity over the last 24 hours.

Read-only: Yes. Asks first: No.

No other parameters.

review_ambiguous_events

Get queued ambiguous sensor events that inference rules flagged for PAL review.

Read-only: No. Asks first: No.

No other parameters.

test_inference_rule

Dry-run an inference rule against recorded sensor data to see when it would have fired.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
ruleIdstringYesRule ID to test (must already be created)
sessionIdstringYesRecording session ID to test against

test_rule_against_history

Replay a DRAFT inference rule over the day history to see when it WOULD have fired — e.g. "would a vent rule at 30 °C have caught last night?".

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
conditionsobject[]YesAll must hold (AND), exactly as for create_inference_rule.
fromstringYesStart: YYYY-MM-DD (start of that day, user's timezone) or an ISO date-time.
tostringNoEnd: YYYY-MM-DD (end of that day) or an ISO date-time.
timeWindowobjectNo
cooldownMsnumberNoMinimum ms between firings (default 60000).
actionsobject[]NoOptional: the actions the rule would have.

Memory

ToolWhat it doesRead-onlyAsks first
rememberSave an important fact about the user to long-term memory.NoNo
recallSearch your memory for facts about the user.YesNo
forgetRemove a fact from memory.NoAlways
list_memoriesList all stored facts about the user, optionally filtered by category or tier.YesNo

remember

Save an important fact about the user to long-term memory.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
categorystringYesFact category: identity, preferences, goals, expertise, hardware, scripts, display, projects, recent_activity, general
keystringYesShort snake_case key, e.g. preferred_units, greenhouse_setup, location
valuestringYesConcise value (under 30 words)
tiernumberNoLoading priority: 0=always in prompt, 1=context-filtered (default), 2=on-demand only
provenance"stated" | "inferred"NoWhere this came from.

recall

Search your memory for facts about the user.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
querystringYesSearch keywords, e.g. "greenhouse", "preferred units", "display"
categorystringNoOptional category filter: identity, preferences, goals, expertise, hardware, scripts, display, projects, recent_activity, general

forget

Remove a fact from memory.

Read-only: No. Asks first: Always.

ParameterTypeRequiredDescription
categorystringYesCategory of the fact to remove
keystringYesKey of the fact to remove

list_memories

List all stored facts about the user, optionally filtered by category or tier.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
categorystringNoFilter by category
tiernumberNoFilter by tier (0=core, 1=standard, 2=on-demand)

Account, plan and parts list

ToolWhat it doesRead-onlyAsks first
request_supportShow the "request support" card under your reply, for something Palpable cannot do yet. kind "hardware": a part no catalogue module drives (search_catalog found nothing). kind "home": a home device that is not Matter. kind "service": an online service with no working connector — pass connectorId for the closest connector that works today, if one fits.NoNo
search_catalogSearch the Palpable hardware catalog for boards, sensors and modules.YesNo
manage_cartManage the user's parts list.NoNo
get_guideGet an on-demand reference guide by topic.YesNo
get_ordersGet the user's order history, including delivery status and tracking for anything shipped.YesNo
get_subscriptionGet the user's subscription info.YesNo
get_usage_statsGet usage statistics.YesNo
manage_subscriptionManage the user's subscription.NoSome calls
toggle_addonActivate or deactivate an add-on on the user's subscription.NoSome calls
get_settingsRead the settings a person can change in the app, with their current values: the account (name, notifications, Wi-Fi…) and, given a subjectId, one project, board, module, display or view.YesNo
change_settingChange one setting the person could change in the app, through the same place the app saves it, so every screen and board updates live.NoSome calls

request_support

Show the "request support" card under your reply, for something Palpable cannot do yet. kind "hardware": a part no catalogue module drives (search_catalog found nothing). kind "home": a home device that is not Matter. kind "service": an online service with no working connector — pass connectorId for the closest connector that works today, if one fits.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
kind"hardware" | "home" | "service"Yes
subjectstringYesWhat they asked for, short and in their words: "a fingerprint reader", "Sonos", "Outlook".
connectorIdstringNokind "service" only: the id of the closest connector that works today (e.g. "google-calendar").

search_catalog

Search the Palpable hardware catalog for boards, sensors and modules.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
querystringYesSearch query

manage_cart

Manage the user's parts list.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
action"add" | "remove" | "view" | "clear"YesThe cart action to perform
moduleIdstringNoBoard or module catalogue ID (required for add and remove; use the id returned by search_catalog)

get_guide

Get an on-demand reference guide by topic.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
topic"module_selection" | "module_gotchas" | "sensor_reference_ranges" | "i2c_troubleshooting" | "calm_technology" | "physical_setup" | "ai_apps" | "onboard_pal" | "display" | "display_design" | "matrix_design" | "script" | "skill_animation" | "skill_games" | "skill_gestures" | "skill_home-lights" | "skill_lighting" | "skill_midi" | "skill_music" | "skill_researcher" | "skill_synth" | "skill_tamagotchi" | "skill_visualizer"YesWhich reference guide to load.

get_orders

Get the user's order history, including delivery status and tracking for anything shipped.

Read-only: Yes. Asks first: No.

No other parameters.

get_subscription

Get the user's subscription info.

Read-only: Yes. Asks first: No.

No other parameters.

get_usage_stats

Get usage statistics.

Read-only: Yes. Asks first: No.

No other parameters.

manage_subscription

Manage the user's subscription.

Read-only: No. Asks first: Some calls.

ParameterTypeRequiredDescription
action"status" | "pause" | "resume"YesThe action to perform

toggle_addon

Activate or deactivate an add-on on the user's subscription.

Read-only: No. Asks first: Some calls.

ParameterTypeRequiredDescription
addon_id"voice_on_pi" | "lora"YesThe add-on to toggle
action"activate" | "deactivate"YesWhether to activate or deactivate

get_settings

Read the settings a person can change in the app, with their current values: the account (name, notifications, Wi-Fi…) and, given a subjectId, one project, board, module, display or view.

Read-only: Yes. Asks first: No.

ParameterTypeRequiredDescription
scope"account" | "project" | "device" | "module" | "display" | "view"NoWhich kind of thing.
subjectIdstringNoId of the project, board, module or display.

change_setting

Change one setting the person could change in the app, through the same place the app saves it, so every screen and board updates live.

Read-only: No. Asks first: Some calls.

ParameterTypeRequiredDescription
settingstringYesSetting id from get_settings, e.g. account.notify.email
valueanyYesThe new value.
subjectIdstringNoId of the project, board, module or display it belongs to (not needed for account settings).

Web, places and services

ToolWhat it doesRead-onlyAsks first
use_builtin_serviceCall a built-in service (weather, Wikipedia, ISS, radio, … — listed in <builtin_services>).NoNo
web_searchSearch the web for information.NoNo
web_readRead text content from a web page URL.NoNo
research_webResearch a question on the web: searches, reads the best pages, and returns ranked, source-tagged passages to answer from.NoNo
find_placeLook up a town or city the user NAMED ("it's in Utrecht") to find where a project is — look_ahead needs it.NoNo
save_locationSave the place the user CONFIRMED (from find_place) as their ACCOUNT location — what look_ahead and every weather/sun connector call in their projects use, unless a project sets its own.NoNo
look_aheadLook at the weather forecast (yr.no) for the next hours and relate it to what a project looks after — "will it be too hot tomorrow?".NoNo

use_builtin_service

Call a built-in service (weather, Wikipedia, ISS, radio, … — listed in <builtin_services>).

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
connectorstringYesService id from <builtin_services>, e.g. "yr-no"
toolstringYesOne of that service's tools, e.g. "get_forecast"
argsobjectNoThe tool's arguments, e.g. {"hours": 12}

Search the web for information.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
querystringYesSearch query

web_read

Read text content from a web page URL.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
urlstringYesURL to read

research_web

Research a question on the web: searches, reads the best pages, and returns ranked, source-tagged passages to answer from.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
querystringYesThe question or topic to research

find_place

Look up a town or city the user NAMED ("it's in Utrecht") to find where a project is — look_ahead needs it.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
namestringYesThe place name as the user gave it.

save_location

Save the place the user CONFIRMED (from find_place) as their ACCOUNT location — what look_ahead and every weather/sun connector call in their projects use, unless a project sets its own.

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
placeIdnumberYesplaceId from find_place.
labelstringYesThe label from find_place that the user confirmed.

look_ahead

Look at the weather forecast (yr.no) for the next hours and relate it to what a project looks after — "will it be too hot tomorrow?".

Read-only: No. Asks first: No.

ParameterTypeRequiredDescription
projectIdstringNoProject id.
hoursnumberNoHours ahead, 1–48.
outdoorKeystringNoHistory key of an outdoor temperature sensor, if the user has one.

Project socket messages

Every message on the project socket is one JSON object with a type. How to find the socket, open it and subscribe is in WebSocket API.

Channels

ChannelMessages on it
sensorssensor_data, camera_event
variablesvariable_state
eventsbehavior_event
statusdevice_status, purpose

Messages you send

read messages work with any key. write messages need a key that can control; with a read-only key they are answered with error FORBIDDEN.

typeFieldsNeeds
subscribechannels: ProjectContextChannel[]read
unsubscribechannels: ProjectContextChannel[]read
set_variablename: string, value: unknownwrite
invoke_commandmoduleId: string, command: string, params?: Record<string, unknown>write
ping—read
camera_snapshot_requestcameraId: stringwrite
camera_stream_requestcameraId: string, offer: stringwrite
camera_ice_candidatecameraId: string, candidate: stringwrite
observe—read

Messages you receive

typeChannelFieldsAbout
subscribed—channels: ProjectContextChannel[]
snapshot—sensors: Record<string, unknown>, variables: Record<string, unknown>, status: { connected: boolean; modules: ProjectContextModule[]; boards?: ProjectContextBoard[]; }, purpose?: ProjectPurpose | null
sensor_datasensorsmoduleId: string, value: unknown, timestamp: number
variable_statevariablesvariables: Record<string, unknown>
behavior_eventeventsevent: string, behaviorId?: string, behaviorName?: string, data?: unknown, timestamp: number
device_statusstatusconnected: boolean, modules: ProjectContextModule[], boards?: ProjectContextBoard[]
purposestatuspurpose: ProjectPurpose | nullThe project's purpose changed (or was first read).
error—message: string, code: ProjectContextErrorCode
notice—code: 'LEGACY_ACCOUNT_KEY', message: stringSomething the holder of the credential should know that is not an error — sent once, after the first snapshot.
command_result—moduleId: string, command: string, boards: numberAn invoke_command was sent: to how many of the project's boards.
pong——
camera_eventsensorscameraId: string, event: string, value?: unknown, path?: string, timestamp: number
camera_stream_answer—cameraId: string, answer: string
camera_ice_candidate—cameraId: string, candidate: string
observe_page—page: VisitorPage

Types

The named types in the fields above. A field marked ? can be left out.

type ProjectContextChannel = 'sensors' | 'variables' | 'events' | 'status';

interface ProjectContextModule {
    moduleId: string;
    name: string;
    address: number;
    deviceId?: string;
}

interface ProjectContextBoard {
    deviceId: string;
    connected: boolean;
}

interface ProjectPurpose {
    subject: string;
    source: 'inferred' | 'user';
    assumption: string;
    ranges: Record<string, PurposeRange>;
    updatedAt: string;
}

interface PurposeRange {
    min?: number;
    max?: number;
    unit: string;
}

type ProjectContextErrorCode = 'FORBIDDEN' | 'INVALID_MESSAGE' | 'NOT_FOUND' | 'INTERNAL' | 'KEY_REVOKED' | 'KEY_EXPIRED' | 'NO_BOARD' | 'COMMAND_REFUSED' | 'REMOVED' | 'LINK_REVOKED' | 'TOO_MANY_WATCHING';

type VisitorPage = {
    kind: 'companion';
    doc: ObserveDoc | null;
    fields: FrameFields | null;
    timezone: string;
} | {
    kind: 'phone-view';
    view: {
        kind: string;
        status: string;
        source: string | null;
        compiled: string | null;
        updatedAt: string;
        iconSet: string | null;
    };
    story: VisitorStory | null;
    timezone: string;
} | {
    kind: 'story';
    story: VisitorStory;
    timezone: string;
} | {
    kind: 'now';
    tiles: Array<{
        board: number;
        moduleId: string;
        connected: boolean;
    }>;
    timezone: string;
} | {
    kind: 'none';
    timezone: string;
};

interface ObserveDoc {
    empty: boolean;
    arrangement: 'figures' | 'sentence';
    sentence: {
        strong: string;
        rest: string;
    };
    lead: ObserveFigure[];
    lanes: ObserveLane[];
    lanesCaption: string;
    timelineTitle: string;
    timeline: ObserveMoment[];
    factsTitle: string;
    facts: ObserveFact[];
    record?: ObserveRecord;
    highScores?: {
        today: ObserveScoreRow[];
        week: ObserveScoreRow[];
    };
    badges?: ObserveBadgeShown[];
    now?: ObserveNowShown;
    care?: ObserveCareShown[];
    voice?: ObserveVoice;
}

interface ObserveFigure {
    key: string;
    caption: string;
    value: string;
    unit?: string;
    words: string;
    series: number[];
    band?: {
        min?: number;
        max?: number;
    };
}

interface ObserveLane {
    label: string;
    amounts: number[];
}

interface ObserveMoment {
    at: number;
    when: string;
    text: string;
    key?: string;
    unit?: string;
    series: number[];
}

interface ObserveFact {
    label: string;
    value: string;
    note?: string;
}

interface ObserveRecord {
    value: string;
    when: string;
    beat?: string;
}

interface ObserveScoreRow {
    value: string;
    when: string;
    mine?: boolean;
}

interface ObserveBadgeShown {
    id: string;
    name: string;
    icon: string | null;
    earned: boolean;
    when?: string;
}

type ObserveVoice = {
    style: 'character' | 'neutral';
    how?: string;
};

interface FrameFields {
    now?: FrameNow;
    care?: FrameCare[];
    badges?: FrameBadge[];
    figure?: FrameFigure;
}

interface FrameNow {
    state: string;
    words?: Words;
    say?: Words;
    about?: Words;
    action?: {
        label: string;
        variable: string;
    };
}

type Words = Record<string, string>;

interface FrameCare {
    variable: string;
    caption: string;
    show: string;
}

interface FrameBadge {
    id: string;
    name: string;
    icon: string;
}

interface FrameFigure {
    variable: string;
    caption: string;
    show: string;
}

type VisitorStory = {
    day: string;
    headline: string | null;
    lines: unknown;
    timezone: string;
};

Error codes

Sent as { "type": "error", "code": …, "message": … }.

codeWhen
FORBIDDENA write with a key that can only read.
INVALID_MESSAGENot JSON, an unknown type, or a message missing a field it needs.
NOT_FOUNDReserved for server faults.
INTERNALReserved for server faults, or a message this server cannot answer.
KEY_REVOKEDThe key was revoked. The socket closes next.
KEY_EXPIREDThe key has expired. The socket closes next.
NO_BOARDA write reached none of the project's boards: the project has none, or none is connected.
COMMAND_REFUSEDinvoke_command named a part or command the boards don't have, or the catalogue's limits refused it.
REMOVEDA message type that no longer exists. The message says what to use instead.
LINK_REVOKEDThe public link the visitor opened was turned off. The socket closes next.
TOO_MANY_WATCHINGToo many people are watching through this public link. The socket closes next.

Close codes

CodeReason
4401API key revoked
4401API key expired
4401API key maker no longer has access to the project
4401API key required
4401API key not valid for this project
4403Project is not served here
4500Server error
4401Link turned off
4429Too many people are watching
4503Cannot check link

Any other close is a network or server event. Reconnect with a back-off.

Removed message types

These are answered with error REMOVED.

typeAnswer
trigger_behaviortrigger_behavior was removed: behaviors are retired. Send set_variable and react to it in the script with p.onVariableChange.

HTTP endpoints

All at https://palpable.technology. Webhooks are set up in the app and have no endpoint of their own: see Webhooks.

MethodPathAuthWhat it is for
GET/api/projects/{projectId}/connectpk_ project keyWhere the project's socket is, and what the key may do. Guide
GET/api/projects/{projectId}/readingspk_ project keyThe project's saved readings, as JSON or CSV. Guide
POST/mcppal_ connection tokenThe MCP server (Streamable HTTP, POST). Guide
GET/.well-known/oauth-protected-resourceNoneProtected resource metadata (RFC 9728). Guide
GET/.well-known/oauth-protected-resource/mcpNoneThe same, at the path for the /mcp resource. Guide
GET/.well-known/oauth-authorization-serverNoneAuthorization server metadata (RFC 8414). Guide
GET/.well-known/oauth-authorization-server/mcpNoneThe same, at the path for the /mcp resource. Guide
POST/api/mcp/oauth/registerNoneDynamic client registration (RFC 7591). Guide
GET/api/mcp/oauth/authorizeNone (PKCE S256)Starts sign-in, and opens Palpable's approval page. Guide
POST/api/mcp/oauth/tokenNone (code + PKCE verifier)Exchanges the code for a pal_ access token. Guide

Keys go in an Authorization: Bearer … header. Where they come from is in API keys and connections.

On this page

MCP toolsProjectsextend_project_to_boardreplace_project_boardget_projectsupdate_projectdelete_projectcreate_projectget_project_purposeset_project_purposeset_observeget_day_storyset_project_palexport_dayget_build_reportBoards and partsget_devicesget_deviceedit_devicedelete_deviceconfirm_modulecheck_firmware_updatesscan_modulesupdate_board_softwarecalibrate_sensorset_module_portscan_bluetooth_sensorswatch_digital_pininspect_attached_hardwareread_digital_pinwrite_digital_pinwrite_pwm_channelread_analog_channelrestart_boardset_cameratake_photolook_at_photoReadings and recordingsget_sensor_dataget_sensor_historystart_recordingstop_recordinglist_recordingsdelete_recordingdelete_all_recordingsreplay_recordinganalyze_recordingget_recording_data_windowget_system_graphScriptsdeploy_scriptstop_scriptstart_scriptget_scriptsget_script_stateget_script_logsupdate_script_paramsViews and screensdisplay_deploydisplay_get_blocksdisplay_configuredisplay_rotatedeploy_viewget_viewset_view_urllist_viewsfork_viewget_view_versionsrollback_viewgenerate_viewupdate_viewVariables, things, rooms and Wi-Figet_thingscreate_thingupdate_thingdelete_thingget_variablescreate_variableupdate_variabledelete_variableget_wifi_networkscreate_wifi_networkupdate_wifi_networkdelete_wifi_networkget_matter_roomscreate_matter_roomupdate_matter_roomdelete_matter_roomadd_devices_to_matter_roomremove_devices_from_matter_roomshare_with_smart_homeRulescreate_inference_rulelist_inference_rulesupdate_inference_ruledelete_inference_ruleget_inference_digestreview_ambiguous_eventstest_inference_ruletest_rule_against_historyMemoryrememberrecallforgetlist_memoriesAccount, plan and parts listrequest_supportsearch_catalogmanage_cartget_guideget_ordersget_subscriptionget_usage_statsmanage_subscriptiontoggle_addonget_settingschange_settingWeb, places and servicesuse_builtin_serviceweb_searchweb_readresearch_webfind_placesave_locationlook_aheadProject socket messagesChannelsMessages you sendMessages you receiveTypesError codesClose codesRemoved message typesHTTP endpoints