> For the complete documentation index, see [llms.txt](https://docs.segments.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.segments.ai/how-to-annotate/object-locking.md).

# Object locking

Lock an object to prevent any modification (move, resize, category change, delete). The cursor changes to a lock icon when hovering over a locked object.

* `Shift + R` - toggle lock on the active object
* Or click the lock icon in the right sidebar

<figure><img src="https://1553794111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHczBG7NHgAtEe4ql1rXH%2Fuploads%2FofHQrRpylP28aXplWmUx%2FScreenshot%202026-07-07%20at%2011.41.08.png?alt=media&amp;token=4afd7310-d62e-479f-a58f-98d2cf29ab2e" alt="" width="373"><figcaption></figcaption></figure>

Note that

* Locking is **local**, meaning others will not see any locks that you've placed on objects
* Locking is **temporary**, meaning locks are not saved and are reset on reload

Locking can be used for accuracy purposes to avoid unintended modification, or for structured QA processes.

If you want all objects to be locked, you might benefit more from the [read-only](/guides/open-a-sample-in-read-only-mode.md) mode.


---

# 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.segments.ai/how-to-annotate/object-locking.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.
