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

# API

- [串口协议](https://docs.petoi.com/chinese/api/chuan-kou-xie-yi.md)
- [反馈舵机](https://docs.petoi.com/chinese/api/chuan-kou-xie-yi/fan-kui-duo-ji.md)
- [嵌套任务队列和信号发生器](https://docs.petoi.com/chinese/api/chuan-kou-xie-yi/qian-tao-ren-wu-dui-lie-he-xin-hao-fa-sheng-qi.md)
- [Python serialMaster使用指南](https://docs.petoi.com/chinese/api/python-serialmaster-shi-yong-zhi-nan.md): 如何使用python脚本与机器人（Nybble😼 / Bittle🐶）开心玩耍?
- [MicroPython控制器](https://docs.petoi.com/chinese/api/micropython-kong-zhi-qi.md): 使用NyBoard WiFi 模块作为 MicroPython 控制器教程
- [MicroPython上手玩](https://docs.petoi.com/chinese/api/micropython-kong-zhi-qi/micropython-shang-shou-wan.md)
- [配置WebREPL](https://docs.petoi.com/chinese/api/micropython-kong-zhi-qi/pei-zhi-webrepl.md): 实现远程调试与上传程序
- [使用ESP-NOW协议](https://docs.petoi.com/chinese/api/micropython-kong-zhi-qi/shi-yong-espnow-xie-yi.md): Petoi 群控方案
- [通过树莓派控制机器人](https://docs.petoi.com/chinese/api/tong-guo-shu-mei-pai-kong-zhi-ji-qi-ren.md)
- [ROS](https://docs.petoi.com/chinese/api/ros.md): ROS 接口


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.petoi.com/chinese/api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
