Context Bar

What is the context bar?

The context bar enables you to provide Slesh with relevant context, when sending a chat. You can specify the page or section you'd like to focus on or share any additional information that may assist Slesh in completing a task. It serves as a quick and convenient tool to enhance Slesh's performance without the need for copying and pasting.

Types of Context

Currently Slesh allows you to add three different types of context:

When you provide a URL or link as context, you are indicating to Slesh that the chat or task you've initiated is related to or may need information from the URL you've shared.

Screenshots

Screenshots are taken of the tab/window you are currently on and can be provided to Slesh where viewing the page may be necessary to accomplish the task. In some cases, Slesh may request that you provide a screenshot, where you can make the decision to consent or deny to this request.

Selected Text

Whether you want to focus on important part of a website or only want Slesh to look at a text. You can add a text to the context by simply highlighting or selecting any text in your browser.

Managing Context(s)

Hint: In the case the context bar extends beyond the size of the side panel window, you can navigate by scrolling with your mouse wheel or sliding with two fingers on the trackpad.

Adding Context

Add Context Button

You can add URLs and Screenshots as context by using the (Add Context) button, or it's corresponding key bind "Alt + C" (which can be customized). However, Slesh won't allow you to add the same URL or a screenshot of the same window/tab more than once. For adding URLs specifically, Slesh allows you to add the current tabs you have opened as well as websites from your browser history.

Typing '@'

You can also add URLs and Screenshots to the context bar by typing @ in the chat box which will display a similar menu to the Add Context Button which can be searched and filtered by continuing to type.

Screenshot Button

You can also add screenshots by clicking the camera icon beside the send chat button . Or by using the corresponding key bind "Alt + S" (also customizable).

Adding Selected Text

You can add a text to the context by simply highlighting or selecting any text in your browser. Selecting another text will automatically update or replace the existing text.

Pinning Context

By default, the current tab you are on, will be added to the context as a URL, but will disappear when switching tabs, unless it's been pinned . Also, any URL context added using any of the options above, will automatically be pinned.

You can also pin selected text, which prevent that text from being replaced over overridden when selecting or highlighting other text in the browser.

Note: Screenshot contexts won't have the pin icon but won't be removed when switching tabs.

Removing Context

While Slesh is usually able to determine whether or not the added context is relevant, it's best to remove unrelated contexts when making a request.

You can remove any context by click on it's respective close icon in the context bar.

Context Limits

Currently Slesh limits the amount of context, by type, you can provide with one message. These limits are as follows: 3 URLs, 2 Screenshots and 1 Selected Text. These limits are visible when using the (Add Context) button or typing '@' in the chat box.

Note: The current tab URL will not automatically added if the URL context limit has already been reached.

Context Visibility/History

When sending a chat with context it will be displayed above the previous message, so you can refer back to previous messages with their respective contexts.

Quick Switching Tabs

The context bar includes a convenient feature that lets you open any URL contexts by simply clicking on them within the Context Bar. If the link is already open in another tab, Slesh will promptly switch to that tab. If it isn't open, Slesh will open a new tab instead.

Note: If the context URL matches the current tab, Slesh will not take any action.

Last updated