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

# Scripting

- [Scripting](https://docs.proxyman.com/scripting/script.md): How to use the Scripting tool to modify the Request/Response by Javascript Code.
- [async/await Request](https://docs.proxyman.com/scripting/async-await-request.md): How to use async/await for JS Script in the Scripting Tool
- [Addons](https://docs.proxyman.com/scripting/addons.md): A list of built-in addons from Proxymans
- [Built-in JS Libraries](https://docs.proxyman.com/scripting/built-in-js-libraries.md): List of built-in JS libraries that you can use the Script
- [Use npm install](https://docs.proxyman.com/scripting/use-npm-install.md): Explain how to use \`npm install\` to install 3rd-party libraries to Proxyman Script
- [Write your own Addons](https://docs.proxyman.com/scripting/write-your-own-addons.md)
- [Snippet Code](https://docs.proxyman.com/scripting/snippet-code.md): The collection of useful snippet code for the Scripting tool
- [Environment Variables](https://docs.proxyman.com/scripting/environment-variables.md)


---

# 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.proxyman.com/scripting.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.
