> For the complete documentation index, see [llms.txt](https://docs.imerit.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imerit.net/labeling/labeling-ai-assistance/magnetic-lasso.md).

# Magnetic Lasso

Magnetic Lasso allows you to quickly free-hand draw an accurate polygon around an area of interest.

The Magnetic Lasso allows you to free-draw a polygon quickly and accurately around an area.

## Using the Magnetic Lasso

Your project's category schema must contain at least one enabled Polygon or Segmentation tool. Otherwise, the Magnetic Lasso button is disabled. Hover over it to see why it is unavailable.

1. Click on the Magnetic Lasso button in the toolbar:

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FwTezReFW6tLBYmMRFGzF%2Fimage.png?alt=media&amp;token=8c7c8e48-ce60-430f-a7ad-1d36e5cae935" alt=""><figcaption></figcaption></figure>

2. With the Magnetic Lasso tool selected, click on where you'd like to start your polygon. Then, without holding down the left mouse button, move the cursor around the general area where you'd like your polygon to wrap. Click the left mouse button to add anchors, and the right mouse button to remove the last anchor you have placed. When you are done, press "N" to close the polygon:

![](https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2Fm1t4s9dwf0qvGJhgF97D%2Fimage.png?alt=media\&token=5bc7654b-1c37-458f-9bc0-706d4b93929e)

3. Once the polygon is closed, change its category by right clicking on it, then from the three-dot menu pick "Change Category" and the right tool for your polygon:

<img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FB7J8kzwLa396MSsPQH6H%2Fimage.png?alt=media&amp;token=0e0128b5-2a0f-44be-8ff8-5ebc6ed988f9" alt="" data-size="original">


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.imerit.net/labeling/labeling-ai-assistance/magnetic-lasso.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
