# Scratchpad Editor

**Example URL:** <https://pentest.ws/e/{engagement.id}/host/{host.id}/scratchpad>

Scratchpad is a per Host repository of your notes, programming code, scripts, documentation, or any other rich text you want to associate with a Host.

![Scratchpad Editor](/files/4PdDvPxWRe2OfALBReG0)

* Code editing with syntax highlighting for over 150 programming languages.
* Hierarchical file structure with drag-and-drop.
* Download files through the browser or using wget/curl/downloadstring.
* Instantly switch between code & rich text editing.
* Import CherryTree XML files!

## Toolbar Buttons

### Tree Toolbar

![](/files/UJe0S2BpXN31QGHD8zwq) Create a new sibling of the current document

![](/files/kjFVnAo1qdraQ2DoLFBM) Create a child of the current document

![](/files/M8MqWM4zSHjRlISsTWvg) Create a duplicate of the current document

![](/files/HWojil99A1oZ7vXuDyoN) Expand the document tree

![](/files/r5ZNrdzNXH6VMI6D4uII) Collapse the document tree

![](/files/u6GQKQKZNavl9y2Sv0Vv) Import documents from either raw text / code, or CherryTree XML files

![](/files/goEm4S2pJpDBTrUAM1EZ) Rebuild the tree from the document list. You will lose the hierarchy structure of the tree and all documents will be on the root node. This option is only needed when the document tree gets corrupted.

### Document Toolbar

![](/files/Ae4kndF100HgzTkOEwfm) Select from the Code Editor or the Rich Text Editor. The contents of your document will be automatically converted between the two.

![](/files/QInhNfJp4Y1Jp0S5JpBr) In Code mode, the language selector gives you syntax highlighting for over 150 different programming languages.

![](/files/kYQ7UVhgKmIwRlmv2pDS) Download the content of the current document.

![](/files/q1yWhDfIfqNKc0P64CSx) See the [Public Download](#public-download-scratchpad-items) section below

![](/files/ioJT1AAGlgBi5YJlZilt) Send To shortcuts to copy the current document to your clipboard. You can also send the document over to the [CyberChef](/built-in-tools/cyberchef.md) or [Echo Up](/built-in-tools/echo-up.md) tools.

## Document Tree

Scratchpad's document tree is a hierarchical file structure that supports drag-and-drop to reorder documents. You can also drag documents onto other documents to create child documents.

Double click a document in the Document Tree to rename the document.&#x20;

## Public Download Scratchpad Items

![Public Download](/files/zowcGcyzDAqwWO9RzYBH)

Scratchpad documents can be downloaded using wget, curl, powershell or other HTTP request by clicking the ![](/files/ylw2clhJWz26AUjUYPsZ) button in the toolbar to make the document publicly available for 60 seconds.

The popup screen will give you a number of download commands and a timer indicating the number of seconds remaining before the document automatically returns to private state. At any time you can remove public access by clicking the ![](/files/BcbKsVhZXm3VBtlAktfZ) button.

When a document is public, no authentication is required to access the contents. The document is accessed by referencing the cryptographically secure random alphanumeric string. Anyone with this token can access the content while the document is public.

## Tier Availability

**Scratchpad** is available on **Hobby Tier** and **Pro Tier**, and limited to two (2) scratchpad documents per Host on **Free Tier**.&#x20;

The **Public Download** feature is not available on **Free Tier**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentest.ws/hosts-and-services/scratchpad-editor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
