> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/manual/evaluator/applicable_contexts/tab_context_menus.md).

# Tab Context Menus

Functions in the [folder tab context menus](/directory-opus/manual/customize/the_customize_dialog/context_menus.md) can use the evaluator like in any other [toolbar or menu](/directory-opus/manual/evaluator/applicable_contexts/functions.md), however in this evaluation context, the following variables are available which are specific to folder tabs:

| Variable  | Type   | Description                                                                                     |
| --------- | ------ | ----------------------------------------------------------------------------------------------- |
| count     | *int*  | Returns the number of tabs.                                                                     |
| countdual | *int*  | In a dual-display Lister, returns the number of tabs in the other file display.                 |
| dual      | *bool* | Returns **true** if this is a dual-display Lister, or **false** for single-display.             |
| path      | *path* | Returns the path shown in the tab that was right-clicked.                                       |
| right     | *bool* | Returns **true** if this is the right/bottom file display, **false** if it is the top/left one. |
| sel       | *int*  | Returns the index of the tab that was right-clicked, or `-1` if the click wasn't on a tab.      |


---

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

```
GET https://chaoses-ib.gitbook.io/directory-opus/manual/evaluator/applicable_contexts/tab_context_menus.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.
