> For the complete documentation index, see [llms.txt](https://docs.robpod.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.robpod.cloud/robot/robot-toolbar/run-a-script.md).

# Run a Script

When you have [robot control](/robot/robot-toolbar/control-the-robot.md), you can execute a robot script with the ![](/files/JuwVDf0ClZ6gTL7QGVpL)**Run On Robot** action.

Select the script you want to execute and click on![](/files/JuwVDf0ClZ6gTL7QGVpL)**Run On Robot** from the [robot tool bar](/robot/robot-toolbar.md).

&#x20;<img src="/files/wRrVkNBOhWBwfbKQR1sb" alt="" data-size="line"> Warning! this command will execute a robot motion.

{% hint style="info" %}
A script is selected when its name is highlighted with blue underscore.

![](/files/xQFJgwBz3NyozaCL9GIc)
{% endhint %}

You can use the robot tool bar also to ![](/files/ijJC3yXH7SPJB8vPTP4q) **Pause**, ![](/files/JuwVDf0ClZ6gTL7QGVpL) **Resume** and ![](/files/TmpE2aBf3eRrPUgSJFkU) **Stop** the running script.

{% tabs %}
{% tab title="Universal Robots" %}
{% embed url="<https://youtu.be/B3sZ_q9Vtqk>" %}

{% endtab %}

{% tab title="Doosan Robotics" %}
{% embed url="<https://youtu.be/yj9hL7sBQps>" %}
{% endtab %}
{% endtabs %}

{% hint style="info" %}
In order to run a program correctly check that [S](/synchronization/synchronization-settings.md)[ynchronization Settings](/synchronization/synchronization-settings.md) are configured accordingly with your robot specification.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.robpod.cloud/robot/robot-toolbar/run-a-script.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
