# API常见问题

### 接口参数使用不规范而导致程序出错甚至闪退

请注意，使用Local Api创建或修改窗口，或是其他操作时，接口参数一定要符合规范，不要随意删改参数，不要传递未知意义的值或类型。

### 使用按键精灵等工具调试接口时，提示传参格式不对

Local Api的所有接口的参数传递方式为body传参，json格式，不接受request url、formdata、string等类型传参方式。建议使用postman调试接口，调通后，再进行脚本开发调用。postman调试示例如下：

![](/files/uJL2isK4ATN0yEQFMFEv)


---

# Agent Instructions: 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:

```
GET https://doc.bitbrowser.net/zh/api-jie-kou-wen-dang/api-chang-jian-wen-ti.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
