Create a pad
create_documentCreates a new collaborative pad with optional initial text and syntax highlighting, then returns a shareable URL for real-time editing with others.
Instructions
Creates a pad, optionally with initial content and an editor language, and returns its shareable URL. Without an id a random one is generated. Pads are ephemeral: they are lost when the Rustpad server restarts and after 24 hours without an open connection. Anyone who knows the URL can read and edit the pad.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Desired pad id; omit to generate a random one | |
| text | No | Initial content | |
| language | No | Monaco editor language id for syntax highlighting, e.g. "markdown", "javascript", "rust", "plaintext" |