diff --git a/docs/monitor/default-interface.md b/docs/monitor/default-interface.md index 4c93d36b3d..ad0641d5b2 100644 --- a/docs/monitor/default-interface.md +++ b/docs/monitor/default-interface.md @@ -50,6 +50,25 @@ Each configured component and service appears as a card. What you can do depends You can switch between machine parts directly from the CONTROL tab using the part selector at the top. +### Code sandbox + +The CONTROL tab includes a TypeScript code sandbox. +Click **Sandbox** in the sidebar under **Code** to open it. + +The sandbox editor is pre-filled with a starter program based on the machine's configured resources. +You can edit the code, run it, and see output in the console below the editor. +The sandbox runs against your live machine using the page's existing connection, so you do not need to supply an API key or address. + +Use the sandbox to: + +- Test SDK calls interactively before writing a full application +- Experiment with component and service methods on a live machine +- Prototype a sequence of commands without setting up a local development environment + +Programs are not persisted. +Navigating away from the sandbox discards your code. +Use the download button to save your program as a file before leaving. + ## Viam mobile app The Viam mobile app provides similar access from your phone: diff --git a/docs/monitor/overview.md b/docs/monitor/overview.md index e15bfcb023..acde382524 100644 --- a/docs/monitor/overview.md +++ b/docs/monitor/overview.md @@ -44,7 +44,7 @@ See [Set up alerts](/monitor/alert/). You can remotely control and test any configured machine without writing code. -The **default control interface** is the CONTROL tab on your machine's page in the Viam app. It provides a control card for every configured component and service: move bases, actuate arms and grippers, read sensors, view camera feeds, and test vision services. The Viam mobile app provides similar access from your phone. +The **default control interface** is the CONTROL tab on your machine's page in the Viam app. It provides a control card for every configured component and service: move bases, actuate arms and grippers, read sensors, view camera feeds, and test vision services. A built-in code sandbox lets you write and run TypeScript against the live machine directly from the browser. The Viam mobile app provides similar access from your phone. **Teleop workspaces** let you build custom operator interfaces with only the widgets you need for a specific task. You choose the widgets (camera feeds, sensor readouts, actuation controls, GPS maps) and arrange them into a focused view. This is useful when the full CONTROL tab shows more than the operator needs.