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 (
destructiveHintis true for both). These tools also takeconfirm(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
| Tool | What it does | Read-only | Asks first |
|---|---|---|---|
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. | No | No |
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. | No | No |
get_projects | Look up the user's projects (id, name, icon, color, enabled). | Yes | No |
update_project | Update an existing project. | No | No |
delete_project | Delete a project. | No | Always |
create_project | Create a new project. | No | No |
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'). | Yes | No |
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. | No | No |
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. | No | No |
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. | No | No |
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. | No | 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. | No | No |
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. | Yes | No |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
fromDeviceId | string | Yes | The device UUID of the project board being replaced. |
toDeviceId | string | Yes | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | The project ID to update |
name | string | No | New name |
description | string | No | New description |
icon | string | No | New icon |
color | string | No | New color hex |
enabled | boolean | No | Enable or disable the project |
thing_id | string | No | Associated thing ID |
delete_project
Delete a project.
Read-only: No. Asks first: Always.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | The project ID to delete |
create_project
Create a new project.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Project name |
description | string | No | Project description |
icon | string | No | Emoji icon (default 📁) |
color | string | No | Hex color (default #8b5cf6) |
thing_id | string | No | Associated thing/device group ID |
deviceIds | string[] | No | IDs 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | Project 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | Project id. |
subject | string | Yes | What is looked after, as the user would say it: "tomatoes", "the vaccine fridge". |
assumption | string | Yes | One 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. |
ranges | object | Yes | Per 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | Project id. |
kind | "watch" | "tell" | "do" | "play" | "companion" | "ambient" | No | |
labels | object | No | By reading, as "moduleId:capability": { "modulino-joystick:x": "Mod wheel" }. |
hide | string[] | No | Readings to leave out, as "moduleId:capability". |
lead | string[] | No | Up to two figures to lead with, by reading ("moduleId:capability") or by their caption. |
game | object | No | How to read a game. |
sentence | object | No | A sentence to show in place of the composed one. |
now | object | No | What the project is right now, in its own words, and its one button. |
voice | object | No | How the page talks: a character ("small, sleepy, polite") or plain. |
badges | object[] | No | Up to 8 badges to earn. |
care | object[] | No | Up to 4 lines of care for a pet: what was done last, how long in a state. |
figure | object | null | No | A 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | Project id. |
day | string | No | YYYY-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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | Project id. |
fits | boolean | Yes | |
reason | string | Yes | One sentence: why a PAL fits this project or does not. |
source | "inferred" | "user" | Yes | |
names | string[] | No | 1–3 names, each ONE capitalised word from the project then PAL, e.g. ["Shelf PAL","Basil PAL","Pocket PAL"]. |
personality | object | No | |
checkIn | "never" | "4h" | "1h" | "15m" | No | |
beforeActing | "ask" | "act_then_tell" | No | |
savings | object | No | |
character | "home-lights" | "tamagotchi" | No | Only 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). |
actions | object[] | 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | Project id. |
day | string | No | YYYY-MM-DD in the user's timezone. |
format | "csv" | "json" | No | Default 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | Project ID (optional; defaults to the open project) |
count | number | No | How many of the latest builds (1 to 5). |
Boards and parts
| Tool | What it does | Read-only | Asks first |
|---|---|---|---|
get_devices | Look up the user's devices with their status and connected modules. | Yes | No |
get_device | Get detailed information about a specific device. | Yes | No |
edit_device | Update a device's name or settings. | No | No |
delete_device | Delete a device. | No | Always |
confirm_module | Confirm which hardware module is connected at an ambiguous I2C address. | No | No |
check_firmware_updates | Check for available firmware updates. | Yes | No |
scan_modules | Run a fresh I2C scan of every connected board to check its modules. | No | No |
update_board_software | Start the newest software update on one of the person's boards — what the Update button does. | No | No |
calibrate_sensor | Calibrate one reading on one board in two steps, for a sensor that reads wrong ("my scale reads wrong"). | No | No |
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). | No | No |
scan_bluetooth_sensors | Passively observe nearby BTHome v2 Bluetooth sensor advertisements for 1–20 seconds (default 10). | No | No |
watch_digital_pin | Observe both GPIO edges for a bounded interval, with optional kernel debounce, input pull and active-low interpretation. | No | No |
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. | No | No |
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. | No | No |
write_digital_pin | Drive and retain a header GPIO output. | No | Always |
write_pwm_channel | Set an exported kernel hardware PWM channel on the connected board. | No | Always |
read_analog_channel | Read one single-ended ADS1115 ADC input in volts. | No | No |
restart_board | Restart (reboot) a board, the same as Restart on its Manage page. | No | Some calls |
set_camera | Turn a board's camera on or off. | No | Some calls |
take_photo | Take a photo with a board's camera and show it to the person in this chat. | No | No |
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). | No | Some 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | The device ID |
edit_device
Update a device's name or settings.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | The device ID |
name | string | No | New name |
delete_device
Delete a device.
Read-only: No. Asks first: Always.
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | The device ID |
confirm_module
Confirm which hardware module is connected at an ambiguous I2C address.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | The device UUID |
carrierId | string | No | The base (carrier) the board is seated on, by catalogue id: "seeed-xiao-expansion-base" (Seeed Studio Expansion Board Base for XIAO). |
i2cAddress | number | No | The I2C address (decimal) where the ambiguous device was detected. |
moduleId | string | No | The confirmed module ID (e.g., "modulino-pixels") |
boardVariant | string | No | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | The board (devices.id). |
moduleId | string | Yes | e.g. "qwiic-nau7802" |
capability | string | Yes | e.g. "weight" |
step | "tare" | "reference" | Yes | |
referenceValue | number | No | For 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | The board (devices.id). |
moduleId | string | Yes | The catalogue id of the part, e.g. "grove-4-digit-display". |
carrier | string | No | The board the part plugs into, e.g. "grove-base-hat-pi". |
port | string | No | The port on that carrier, e.g. "D5". |
pins | object | No | Instead of carrier/port: signal → GPIO number, e.g. {"clk": 20, "dio": 21}. |
supplyV | 3.3 | 5 | No | With "pins": the supply the part is wired to. |
count | number | No | LEDs 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
durationSeconds | number | No | |
deviceId | string | No | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
pin | number | Yes | |
durationMs | number | Yes | |
debounceMs | number | No | |
pull | "none" | "up" | "down" | No | |
activeLow | boolean | No | |
deviceId | string | No | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | No | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
pin | number | Yes | |
pull | "none" | "up" | "down" | No | |
activeLow | boolean | No | |
deviceId | string | No | The board (devices.id from get_devices). |
write_digital_pin
Drive and retain a header GPIO output.
Read-only: No. Asks first: Always.
| Parameter | Type | Required | Description |
|---|---|---|---|
pin | number | Yes | |
value | boolean | Yes | |
activeLow | boolean | No | |
deviceId | string | No | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
chip | number | Yes | |
channel | number | Yes | |
periodNs | number | Yes | |
dutyNs | number | Yes | |
enabled | boolean | Yes | |
deviceId | string | No | The board (devices.id from get_devices). |
read_analog_channel
Read one single-ended ADS1115 ADC input in volts.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
address | number | Yes | |
channel | number | Yes | |
deviceId | string | No | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | No | The board (devices.id from get_devices). |
set_camera
Turn a board's camera on or off.
Read-only: No. Asks first: Some calls.
| Parameter | Type | Required | Description |
|---|---|---|---|
on | boolean | Yes | true to turn the camera on, false to turn it off. |
cameraId | string | No | The camera id from the board (e.g. csi:/dev/media0). |
deviceId | string | No | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
cameraId | string | No | The camera id from the board (e.g. csi:/dev/media0). |
deviceId | string | No | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | The project the photo belongs to. |
captureId | string | Yes | The photo id (snap_…) or clip id (clip_…) on the board. |
deviceId | string | No | The board (devices.id). |
question | string | No | What to look for (optional). |
Readings and recordings
| Tool | What it does | Read-only | Asks first |
|---|---|---|---|
get_sensor_data | Get the latest reading each module on a device reported, with how old it is. | Yes | No |
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). | Yes | No |
start_recording | Start recording sensor data from the connected device. | No | No |
stop_recording | Stop the active recording session. | No | No |
list_recordings | List all saved recording sessions with metadata (duration, size, module list). | Yes | No |
delete_recording | Permanently delete a recording session. | No | Always |
delete_all_recordings | Permanently delete all recording sessions. | No | Always |
replay_recording | Replay a recorded session — clients (app, display previews) see sensor data as if hardware were live. | No | No |
analyze_recording | Analyze a recording session and return a statistical digest with recommendations. | Yes | No |
get_recording_data_window | Get a time-windowed slice of raw sensor data from a recording for detailed investigation. | Yes | No |
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). | Yes | No |
get_sensor_data
Get the latest reading each module on a device reported, with how old it is.
Read-only: Yes. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | The device ID |
sensorType | string | No | Optional: 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | Project ID (default: the open project) |
moduleId | string | No | Only this module, e.g. qwiic-scd41 |
capability | string | No | Only this reading, e.g. co2 or temperature |
range | "day" | "week" | "month" | "year" | "all" | No | How far back (default week; never older than the project keeps) |
limit | number | No | Most 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Human-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.
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionId | string | Yes | Recording 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionId | string | Yes | Recording session ID to replay |
speed | number | No | Playback 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionId | string | Yes | Recording 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionId | string | Yes | Recording session ID |
startMs | number | Yes | Start time in ms (from recording start) |
endMs | number | Yes | End time in ms (from recording start) |
capability | string | No | Optional: filter to specific "moduleId:capability" key |
maxEvents | number | No | Max 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | Optional: scope scripts to one project. |
Scripts
| Tool | What it does | Read-only | Asks first |
|---|---|---|---|
deploy_script | Create or update a script (TypeScript program). | No | No |
stop_script | Stop a running script. | No | No |
start_script | Start a stopped script. | No | No |
get_scripts | List scripts for the current project. | Yes | No |
get_script_state | Read a script's persisted state (high scores, game progress, etc.). | Yes | No |
get_script_logs | Get recent logs from a running script on the Pi. | Yes | No |
update_script_params | Update a script's parameter values without redeploying code. | No | No |
deploy_script
Create or update a script (TypeScript program).
Read-only: No. Asks first: No. Runs a model and uses the account's credits.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project ID to scope the script to |
name | string | Yes | Short name for the script (e.g. "Simon Game", "Theremin") |
code | string | Yes | TypeScript source code. |
description | string | No | Brief description of what the script does |
runLocation | string | No | Where to run: "cloud" (default, has PAL/display access), "pi" (offline-safe, low latency), or "both" |
scriptId | string | No | Existing script ID to update (omit to create new) |
requiredInputDeviceIds | string[] | No | Hasura device.id values of explicit input producers this behavior requires. |
targetDeviceIds | string[] | No | Optional Hasura device.id list to pin the script to specific Pis. |
stop_script
Stop a running script.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
scriptId | string | Yes | ID of the script to stop |
start_script
Start a stopped script.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
scriptId | string | Yes | ID of the script to start |
get_scripts
List scripts for the current project.
Read-only: Yes. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | Project 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
scriptId | string | Yes | Script ID |
get_script_logs
Get recent logs from a running script on the Pi.
Read-only: Yes. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
scriptId | string | Yes | Script ID |
limit | number | No | Max 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
scriptId | string | Yes | Script ID |
params | object | Yes | Key-value pairs of parameter values to update |
Views and screens
| Tool | What it does | Read-only | Asks first |
|---|---|---|---|
display_deploy | Adapt a project experience for one physical OLED/e-ink SCREEN (SSD1306, SH1106, etc.). | No | No |
display_get_blocks | Get the current block document for a display. | Yes | No |
display_configure | Reconfigure display dimensions. | No | No |
display_rotate | Set how a physical screen is MOUNTED on a board: 0, 90, 180 or 270 degrees clockwise. | No | No |
deploy_view | Persist a project's <pal-*> view. | No | No |
get_view | Read a project's view (source + status). | Yes | No |
set_view_url | Point a view at an external URL — the URL IS the app, an equal alternative to a PAL-generated dashboard. | No | No |
list_views | List all views in a project (id, name, status, link_status). | Yes | No |
fork_view | Make an independent copy of a view so it can diverge from its source (Model A). | No | No |
get_view_versions | List the saved version history for a view (most recent first), for rollback. | Yes | No |
rollback_view | Restore a view to an earlier saved version. | No | No |
generate_view | Design a NEW named dashboard/display for the project as a <pal-*> view. | No | No |
update_view | Change a project's screen views per an instruction. | No | No |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | Project this physical surface belongs to. |
displayId | string | No | Display ID from physical_context (e.g. "i2c:0x3c"). |
sourceViewId | string | No | Canonical project view this panel adapts. |
code | string | No | A React component (TSX) composing readouts and scenes, or a GLSL fragment shader when codeFormat is "glsl". |
codeFormat | "html" | "glsl" | No | Format of code. |
views | object[] | No | Project mode (no displayId): the views to write, each for ONE of the board's screens, named by its display id. |
kit | string | No | Project mode: the project kit — named exports (the character's states, icons, formatting, palette) that more than one view uses. |
blocks | object | No | LEGACY. |
display_get_blocks
Get the current block document for a display.
Read-only: Yes. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
displayId | string | No | Display ID. |
display_configure
Reconfigure display dimensions.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
displayId | string | Yes | Display ID (e.g. "i2c:0x3c") |
height | number | Yes | Display height in pixels (32, 64, or 128) |
width | number | No | Display 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
displayId | string | Yes | Display ID (e.g. "i2c:0x3c") |
rotation | 0 | 90 | 180 | 270 | Yes | Degrees clockwise |
deviceId | string | No | The board (device id) the screen is on. |
deploy_view
Persist a project's <pal-*> view.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project to scope the view to |
viewId | string | No | Existing view to overwrite (omit to create a new named view) |
name | string | No | Human name for the view (PAL-suggested) |
source | string | Yes | The authored <pal-*> view doc |
compiled | string | No | Gate-validated normalized doc |
status | string | Yes | "valid" | "error" | "draft" |
error | string | No | Gate error text when status=error |
parentViewId | string | No | Source view when this is a fork |
linkStatus | string | No | "linked" | "forked" |
get_view
Read a project's view (source + status).
Read-only: Yes. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project ID |
viewId | string | No | Specific view (optional) |
surface | string | No | "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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project to scope the view to |
url | string | Yes | The external URL (http/https) |
name | string | No | A short name for the view |
viewId | string | No | Existing 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
viewId | string | Yes | View to fork |
name | string | No | Name for the forked view |
displayId | string | No | Forking 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
viewId | string | Yes | View ID |
rollback_view
Restore a view to an earlier saved version.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
viewId | string | Yes | View to roll back |
versionId | string | No | Specific 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project to build the view for |
intent | string | Yes | What the view is for, in the user's words |
name | string | No | A 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project whose view to edit |
viewId | string | No | The view to edit (the one currently in scope) |
instruction | string | Yes | What to change |
surface | string | No | A display id such as "i2c:0x3c", or "all". |
Variables, things, rooms and Wi-Fi
| Tool | What it does | Read-only | Asks first |
|---|---|---|---|
get_things | Get the user's things. | Yes | No |
create_thing | Create a new thing (device group). | No | No |
update_thing | Update an existing thing (device group). | No | No |
delete_thing | Delete a thing (device group). | No | Always |
get_variables | Get the user's variables. | Yes | No |
create_variable | Create a new variable. | No | No |
update_variable | Update an existing variable. | No | No |
delete_variable | Delete a variable. | No | Always |
get_wifi_networks | Get the user's wifi_networks. | Yes | No |
create_wifi_network | Create a new WiFi network. | No | No |
update_wifi_network | Update an existing WiFi network. | No | No |
delete_wifi_network | Delete a WiFi network. | No | Always |
get_matter_rooms | Get the user's matter_rooms. | Yes | No |
create_matter_room | Create a new Matter room. | No | No |
update_matter_room | Update an existing Matter room. | No | No |
delete_matter_room | Delete a Matter room. | No | Always |
add_devices_to_matter_room | Add one or more Matter devices to an existing room. | No | No |
remove_devices_from_matter_room | Remove one or more Matter devices from a room. | No | No |
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. | No | No |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Thing name |
description | string | No | Description |
icon | string | No | Emoji icon (default 🤖) |
color | string | No | Hex color (default #3b82f6) |
device_ids | string[] | No | Array of device IDs to group |
update_thing
Update an existing thing (device group).
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
thingId | string | Yes | The thing (device group) ID to update |
name | string | No | New name |
description | string | No | New description |
icon | string | No | New icon |
color | string | No | New color hex |
device_ids | string[] | No | Updated device IDs |
delete_thing
Delete a thing (device group).
Read-only: No. Asks first: Always.
| Parameter | Type | Required | Description |
|---|---|---|---|
thingId | string | Yes | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Variable name (unique per thing) |
type | string | Yes | Type: number, boolean, or string |
value | object | No | Initial value |
thing_id | string | No | Thing ID this variable belongs to |
update_variable
Update an existing variable.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
variableId | string | Yes | The variable ID to update |
name | string | No | New name |
value | object | No | New value |
delete_variable
Delete a variable.
Read-only: No. Asks first: Always.
| Parameter | Type | Required | Description |
|---|---|---|---|
variableId | string | Yes | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
ssid | string | Yes | WiFi network name (SSID) |
password | string | Yes | WiFi password |
country | string | No | Country code (default US) |
priority | number | No | Priority (higher = preferred, default 100) |
update_wifi_network
Update an existing WiFi network.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
wifi_networkId | string | Yes | The WiFi network ID to update |
ssid | string | No | New SSID |
password | string | No | New password |
country | string | No | New country code |
priority | number | No | New priority |
delete_wifi_network
Delete a WiFi network.
Read-only: No. Asks first: Always.
| Parameter | Type | Required | Description |
|---|---|---|---|
wifi_networkId | string | Yes | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Room name (e.g. "Living Room", "Kitchen", "Mood Lights"). |
device_names | object | Yes | Array of Matter device names to include in this room. |
icon | string | No | Optional emoji to represent the room (e.g. "🛋️", "🍳", "🛏️"). |
update_matter_room
Update an existing Matter room.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
matter_roomId | string | Yes | The Matter room ID to update |
name | string | No | New room name |
device_names | object | No | Replace the room's device list. |
icon | string | No | New emoji icon |
delete_matter_room
Delete a Matter room.
Read-only: No. Asks first: Always.
| Parameter | Type | Required | Description |
|---|---|---|---|
matter_roomId | string | Yes | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The room name. |
device_names | string[] | Yes | Device names to add. |
remove_devices_from_matter_room
Remove one or more Matter devices from a room.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The room name. |
device_names | string[] | Yes | Device 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | No | Hasura device.id UUID of the Pi to share. |
deviceName | string | No | Alternative to deviceId — match by the Pi's name (e.g. "Cedar"). |
Rules
| Tool | What it does | Read-only | Asks first |
|---|---|---|---|
create_inference_rule | Create a real-time inference rule that watches sensor data continuously (zero LLM cost per evaluation). | No | No |
list_inference_rules | List all inference rules with their status, trigger counts, and configuration. | Yes | No |
update_inference_rule | Update an existing inference rule. | No | No |
delete_inference_rule | Delete an inference rule permanently. | No | Always |
get_inference_digest | Get a summary of inference rule activity over the last 24 hours. | Yes | No |
review_ambiguous_events | Get queued ambiguous sensor events that inference rules flagged for PAL review. | No | No |
test_inference_rule | Dry-run an inference rule against recorded sensor data to see when it would have fired. | Yes | No |
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?". | No | No |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique rule ID (e.g., "heat_alert", "presence_detection") |
name | string | Yes | Human-readable name |
conditions | object[] | Yes | All conditions must be true (AND). |
actions | object[] | Yes | Actions to execute when all conditions are met. |
timeWindow | object | No | Optional: only evaluate during these hours/days |
cooldownMs | number | No | Minimum 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
ruleId | string | Yes | Rule ID to update |
enabled | boolean | No | |
conditions | any[] | No | Replacement conditions array |
actions | any[] | No | Replacement actions array |
cooldownMs | number | No | |
timeWindow | object | No |
delete_inference_rule
Delete an inference rule permanently.
Read-only: No. Asks first: Always.
| Parameter | Type | Required | Description |
|---|---|---|---|
ruleId | string | Yes | Rule 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
ruleId | string | Yes | Rule ID to test (must already be created) |
sessionId | string | Yes | Recording 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
conditions | object[] | Yes | All must hold (AND), exactly as for create_inference_rule. |
from | string | Yes | Start: YYYY-MM-DD (start of that day, user's timezone) or an ISO date-time. |
to | string | No | End: YYYY-MM-DD (end of that day) or an ISO date-time. |
timeWindow | object | No | |
cooldownMs | number | No | Minimum ms between firings (default 60000). |
actions | object[] | No | Optional: the actions the rule would have. |
Memory
| Tool | What it does | Read-only | Asks first |
|---|---|---|---|
remember | Save an important fact about the user to long-term memory. | No | No |
recall | Search your memory for facts about the user. | Yes | No |
forget | Remove a fact from memory. | No | Always |
list_memories | List all stored facts about the user, optionally filtered by category or tier. | Yes | No |
remember
Save an important fact about the user to long-term memory.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
category | string | Yes | Fact category: identity, preferences, goals, expertise, hardware, scripts, display, projects, recent_activity, general |
key | string | Yes | Short snake_case key, e.g. preferred_units, greenhouse_setup, location |
value | string | Yes | Concise value (under 30 words) |
tier | number | No | Loading priority: 0=always in prompt, 1=context-filtered (default), 2=on-demand only |
provenance | "stated" | "inferred" | No | Where this came from. |
recall
Search your memory for facts about the user.
Read-only: Yes. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keywords, e.g. "greenhouse", "preferred units", "display" |
category | string | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
category | string | Yes | Category of the fact to remove |
key | string | Yes | Key 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
category | string | No | Filter by category |
tier | number | No | Filter by tier (0=core, 1=standard, 2=on-demand) |
Account, plan and parts list
| Tool | What it does | Read-only | Asks first |
|---|---|---|---|
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. | No | No |
search_catalog | Search the Palpable hardware catalog for boards, sensors and modules. | Yes | No |
manage_cart | Manage the user's parts list. | No | No |
get_guide | Get an on-demand reference guide by topic. | Yes | No |
get_orders | Get the user's order history, including delivery status and tracking for anything shipped. | Yes | No |
get_subscription | Get the user's subscription info. | Yes | No |
get_usage_stats | Get usage statistics. | Yes | No |
manage_subscription | Manage the user's subscription. | No | Some calls |
toggle_addon | Activate or deactivate an add-on on the user's subscription. | No | Some calls |
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. | Yes | No |
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. | No | Some 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | "hardware" | "home" | "service" | Yes | |
subject | string | Yes | What they asked for, short and in their words: "a fingerprint reader", "Sonos", "Outlook". |
connectorId | string | No | kind "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.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query |
manage_cart
Manage the user's parts list.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
action | "add" | "remove" | "view" | "clear" | Yes | The cart action to perform |
moduleId | string | No | Board 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
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" | Yes | Which 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
action | "status" | "pause" | "resume" | Yes | The action to perform |
toggle_addon
Activate or deactivate an add-on on the user's subscription.
Read-only: No. Asks first: Some calls.
| Parameter | Type | Required | Description |
|---|---|---|---|
addon_id | "voice_on_pi" | "lora" | Yes | The add-on to toggle |
action | "activate" | "deactivate" | Yes | Whether 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
scope | "account" | "project" | "device" | "module" | "display" | "view" | No | Which kind of thing. |
subjectId | string | No | Id 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
setting | string | Yes | Setting id from get_settings, e.g. account.notify.email |
value | any | Yes | The new value. |
subjectId | string | No | Id of the project, board, module or display it belongs to (not needed for account settings). |
Web, places and services
| Tool | What it does | Read-only | Asks first |
|---|---|---|---|
use_builtin_service | Call a built-in service (weather, Wikipedia, ISS, radio, … — listed in <builtin_services>). | No | No |
web_search | Search the web for information. | No | No |
web_read | Read text content from a web page URL. | No | No |
research_web | Research a question on the web: searches, reads the best pages, and returns ranked, source-tagged passages to answer from. | No | No |
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. | No | No |
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. | No | No |
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?". | No | No |
use_builtin_service
Call a built-in service (weather, Wikipedia, ISS, radio, … — listed in <builtin_services>).
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
connector | string | Yes | Service id from <builtin_services>, e.g. "yr-no" |
tool | string | Yes | One of that service's tools, e.g. "get_forecast" |
args | object | No | The tool's arguments, e.g. {"hours": 12} |
web_search
Search the web for information.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query |
web_read
Read text content from a web page URL.
Read-only: No. Asks first: No.
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | URL 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
placeId | number | Yes | placeId from find_place. |
label | string | Yes | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | Project id. |
hours | number | No | Hours ahead, 1–48. |
outdoorKey | string | No | History 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
| Channel | Messages on it |
|---|---|
sensors | sensor_data, camera_event |
variables | variable_state |
events | behavior_event |
status | device_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.
type | Fields | Needs |
|---|---|---|
subscribe | channels: ProjectContextChannel[] | read |
unsubscribe | channels: ProjectContextChannel[] | read |
set_variable | name: string, value: unknown | write |
invoke_command | moduleId: string, command: string, params?: Record<string, unknown> | write |
ping | — | read |
camera_snapshot_request | cameraId: string | write |
camera_stream_request | cameraId: string, offer: string | write |
camera_ice_candidate | cameraId: string, candidate: string | write |
observe | — | read |
Messages you receive
type | Channel | Fields | About |
|---|---|---|---|
subscribed | — | channels: ProjectContextChannel[] | |
snapshot | — | sensors: Record<string, unknown>, variables: Record<string, unknown>, status: { connected: boolean; modules: ProjectContextModule[]; boards?: ProjectContextBoard[]; }, purpose?: ProjectPurpose | null | |
sensor_data | sensors | moduleId: string, value: unknown, timestamp: number | |
variable_state | variables | variables: Record<string, unknown> | |
behavior_event | events | event: string, behaviorId?: string, behaviorName?: string, data?: unknown, timestamp: number | |
device_status | status | connected: boolean, modules: ProjectContextModule[], boards?: ProjectContextBoard[] | |
purpose | status | purpose: ProjectPurpose | null | The project's purpose changed (or was first read). |
error | — | message: string, code: ProjectContextErrorCode | |
notice | — | code: 'LEGACY_ACCOUNT_KEY', message: string | Something 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: number | An invoke_command was sent: to how many of the project's boards. |
pong | — | — | |
camera_event | sensors | cameraId: 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": … }.
code | When |
|---|---|
FORBIDDEN | A write with a key that can only read. |
INVALID_MESSAGE | Not JSON, an unknown type, or a message missing a field it needs. |
NOT_FOUND | Reserved for server faults. |
INTERNAL | Reserved for server faults, or a message this server cannot answer. |
KEY_REVOKED | The key was revoked. The socket closes next. |
KEY_EXPIRED | The key has expired. The socket closes next. |
NO_BOARD | A write reached none of the project's boards: the project has none, or none is connected. |
COMMAND_REFUSED | invoke_command named a part or command the boards don't have, or the catalogue's limits refused it. |
REMOVED | A message type that no longer exists. The message says what to use instead. |
LINK_REVOKED | The public link the visitor opened was turned off. The socket closes next. |
TOO_MANY_WATCHING | Too many people are watching through this public link. The socket closes next. |
Close codes
| Code | Reason |
|---|---|
4401 | API key revoked |
4401 | API key expired |
4401 | API key maker no longer has access to the project |
4401 | API key required |
4401 | API key not valid for this project |
4403 | Project is not served here |
4500 | Server error |
4401 | Link turned off |
4429 | Too many people are watching |
4503 | Cannot 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.
type | Answer |
|---|---|
trigger_behavior | trigger_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.
| Method | Path | Auth | What it is for |
|---|---|---|---|
GET | /api/projects/{projectId}/connect | pk_ project key | Where the project's socket is, and what the key may do. Guide |
GET | /api/projects/{projectId}/readings | pk_ project key | The project's saved readings, as JSON or CSV. Guide |
POST | /mcp | pal_ connection token | The MCP server (Streamable HTTP, POST). Guide |
GET | /.well-known/oauth-protected-resource | None | Protected resource metadata (RFC 9728). Guide |
GET | /.well-known/oauth-protected-resource/mcp | None | The same, at the path for the /mcp resource. Guide |
GET | /.well-known/oauth-authorization-server | None | Authorization server metadata (RFC 8414). Guide |
GET | /.well-known/oauth-authorization-server/mcp | None | The same, at the path for the /mcp resource. Guide |
POST | /api/mcp/oauth/register | None | Dynamic client registration (RFC 7591). Guide |
GET | /api/mcp/oauth/authorize | None (PKCE S256) | Starts sign-in, and opens Palpable's approval page. Guide |
POST | /api/mcp/oauth/token | None (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.
API keys and connections
Every Palpable credential in one place — project API keys (pk_), legacy account keys, AI app (MCP) connections and webhook secrets — what each opens and how to revoke it.
Scripts
Palpable scripts are TypeScript programs that run on the board. The key ideas of the script API — p.read, p.write, p.every, p.onVariableChange and the async p.connector — and what each board supports.