# How do I use the Doc function under the Indexing & Doc menu?

**URL:** <https://forum.cursor.com/t/how-do-i-use-the-doc-function-under-the-indexing-doc-menu/163102>\
**Category:** Help\
**Tags:** context, indexing\
**Created:** [June 12, 2026, 9:14am UTC](https://forum.cursor.com/t/how-do-i-use-the-doc-function-under-the-indexing-doc-menu/163102 "2026-06-12T09:14:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Li-xiaofeng](https://avatars.discourse-cdn.com/v4/letter/l/b5ac83/32.png) [@Li-xiaofeng](https://forum.cursor.com/u/Li-xiaofeng)\
**Post date:** [June 12, 2026, 9:14am UTC](https://forum.cursor.com/t/how-do-i-use-the-doc-function-under-the-indexing-doc-menu/163102/1 "2026-06-12T09:14:29Z")

</div>

How do I use the Doc function under the Indexing & Doc menu?

No relevant information was found in the help documentation.

 ![ScreenShot_2026-06-12_171238_034](https://us1.discourse-cdn.com/cursor1/original/3X/9/7/97aa0b4ccee51b73fe654f3affa83e4d1e81e792.png)

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [June 14, 2026, 10:00am UTC](https://forum.cursor.com/t/how-do-i-use-the-doc-function-under-the-indexing-doc-menu/163102/5 "2026-06-14T10:00:58Z")

</div>

Hey, this Docs section lets you add documentation, like framework or library docs, so you can reference it later in chat as context. Here’s how to use it:

- In the Docs section, click + Add Doc and paste the URL for the docs page, usually the main docs page for the library. You can also set a name. Cursor will crawl the pages under that URL and index them.
- Or, in chat, type @Docs → Add new doc or @Add while you’re working.
- When indexing is done, type @Docs in chat, pick the doc you added, and Cursor will pull the most relevant parts of the docs into context.

One small note. Docs and @Docs only work in the Editor Window. They’re not available in the Agents Glass window.

If you only need the docs once, it’s often easier to just paste the exact text you need or a link into chat. That works too. Let me know if anything doesn’t work.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [July 14, 2026, 10:00am UTC](https://forum.cursor.com/t/how-do-i-use-the-doc-function-under-the-indexing-doc-menu/163102/6 "2026-07-14T10:00:59Z")

</div>

Closed on July 14, 2026, 10:00am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
