# Reference

Quick-lookup documentation for command-line tools, APIs, and troubleshooting. This section provides technical details for developers and administrators who need to automate workflows, debug issues, or find answers to common questions.

### Command-line and API

[**CLI reference**](/merge-queue/reference/merge-queue-cli-reference.md)\
Complete command reference for the Trunk CLI tool.

[**API reference**](/merge-queue/reference/merge.md)\
Programmatic access to queue operations via REST API.

### Help and troubleshooting

[**FAQ**](/merge-queue/reference/common-problems.md)\
Common questions about merge queue behavior and features.

[**Troubleshooting**](/merge-queue/reference/troubleshooting.md)\
Diagnose and resolve common issues with queue setup and operation.


---

# 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://docs.trunk.io/merge-queue/reference.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.
