> For the complete documentation index, see [llms.txt](https://docs.goless.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goless.com/blocks/browser/take-screenshot-block.md).

# Take Screenshot Block

<figure><img src="/files/2y1fYnTOKt0HTo1VlZXQ" alt=""><figcaption></figcaption></figure>

Used to create a screenshot of the current tab. You can use three modes: A page (screenshot of the page), A full page (screenshot of the entire page), An element (screenshot of a page element). There are settings for these modes:

* **Save screenshot to computer.** Here you need to enter the name and select the file format to save.
* **Insert screenshot to table.** The so-called [data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) is written to the table, which is a text string containing a Base64-encoded image.
* **Assign to variable.** The [data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) is written to the workflow variable. For the block to work correctly, enter the name of the variable previously declared in the program.
* **CSS Selector.** For the An element mode, you must specify the selector of the element for the area of which you want to take a screenshot of the screen.
