> For the complete documentation index, see [llms.txt](https://lessons.mistyrobotics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lessons.mistyrobotics.com/python-elements/misty-python-api.md).

# Misty Python API

This section contains all of the Misty's Python API calls with example codes and parameters for Misty's Python Interface.

Misty's Python library is designed to directly use the API that Misty already hosts, acting as an API client for Misty. This API client is generated by interrogating Misty's API, and producing Python code as a result. The actual generator script can be found here on [Github](https://github.com/MistyCommunity/Python-SDK), and is the best place to start if you want to control Misty from another device. The generator has several dependencies, which can be seen in the setup.py script. The method used to generate the API client is really straightforward and could be replicated in other programming languages without much difficulty.&#x20;

### Contents

{% content-ref url="/pages/wk1ao23bNp39Tc9xtil9" %}
[Motion and Mobility](/python-elements/misty-python-api/motion-and-mobility.md)
{% endcontent-ref %}

{% content-ref url="/pages/eJtk01KgqwlDna0aK8QV" %}
[Display and LED](/python-elements/misty-python-api/display-and-led.md)
{% endcontent-ref %}

{% content-ref url="/pages/g0AqkCkbxxVLQTXGUByY" %}
[Record Assets](/python-elements/misty-python-api/record-assets.md)
{% endcontent-ref %}

{% content-ref url="/pages/Ff3tD5E3n419Rf7iNMzY" %}
[Change/Remove Assets](/python-elements/misty-python-api/change-remove-assets.md)
{% endcontent-ref %}

{% content-ref url="/pages/M7bmtP5VMlYn8ReuPHfB" %}
[Stream Assets](/python-elements/misty-python-api/stream-assets.md)
{% endcontent-ref %}

{% content-ref url="/pages/cUqt4vSbQmNqnHb0C3G6" %}
[Get Assets](/python-elements/misty-python-api/get-assets.md)
{% endcontent-ref %}

{% content-ref url="/pages/0SL9ytXpx8Ql9EjlXe2C" %}
[Events](/blockly-elements/misty-blocks/events.md)
{% endcontent-ref %}

{% content-ref url="/pages/fdqPbvd1XmqMIEo3exXI" %}
[Sensor Events](/python-elements/misty-python-api/sensor-events.md)
{% endcontent-ref %}

{% content-ref url="/pages/DhlVAUCXsiGP2VNmo8tZ" %}
[Speech and NLP](/python-elements/misty-python-api/speech-and-nlp.md)
{% endcontent-ref %}

{% content-ref url="/pages/AYpgeepQAHDoYIFFQUHv" %}
[Arduino Backpack](/python-elements/misty-python-api/arduino-backpack.md)
{% endcontent-ref %}

{% content-ref url="/pages/rIttziphPdSGNHnC8CIQ" %}
[System](/python-elements/misty-python-api/system.md)
{% endcontent-ref %}


---

# 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://lessons.mistyrobotics.com/python-elements/misty-python-api.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.
