Tool tree
gradeNot graded
page: Every page
get_pasteAnswer
Fetch the raw text of a Nopaste by its paste ID. Returns the plain-text body.
View tool JSON
{
"name": "get_paste",
"kind": "answer",
"impl": "imperative",
"description": "Fetch the raw text of a Nopaste by its paste ID. Returns the plain-text body.",
"inputSchema": {
"type": "object",
"properties": {
"paste_id": {
"type": "string",
"description": "The paste ID (4-40 chars, alphanumeric, dash or underscore)."
}
},
"required": [
"paste_id"
]
},
"page": "/"
}read_current_pasteAnswer
Read the paste currently open in the page. No arguments. Only works on /paste/<id> pages.
View tool JSON
{
"name": "read_current_paste",
"kind": "answer",
"impl": "imperative",
"description": "Read the paste currently open in the page. No arguments. Only works on /paste/<id> pages.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/"
}create_pasteAction
Create a new Nopaste from the provided text. Returns the paste URL and, when the server has a shortener configured, its short URL. Pass custom_slug to request a vanity short-link name: it is strict — if the slug is already taken or the shortener is unavailable, the paste is NOT created and an error is returned.
View tool JSON
{
"name": "create_paste",
"kind": "act",
"impl": "imperative",
"description": "Create a new Nopaste from the provided text. Returns the paste URL and, when the server has a shortener configured, its short URL. Pass custom_slug to request a vanity short-link name: it is strict — if the slug is already taken or the shortener is unavailable, the paste is NOT created and an error is returned.",
"inputSchema": {
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "The text body of the paste. Markdown is detected automatically; to publish a diagram wrap its source in a fenced block: ```mermaid ... ``` or ```prlens ... ``` (PR Lens graph.json). A graph body is only recognized inside a fence."
},
"custom_slug": {
"type": "string",
"description": "Optional custom short-link slug (letters, digits, underscore, dash; 5-64 chars). Strict: taken slug or shortener outage fails the call without creating the paste."
}
},
"required": [
"content"
]
},
"page": "/"
}set_paste_slugAction
Set or replace the custom short-link slug for an existing paste via POST /paste/{id}/slug. Requires the browser ownership cookie (user_pastes) for anonymous pastes, or a staff/admin session. Surfaces 400 (invalid), 403 (not owner), 409 (taken), and 503 (shortener disabled) as clear error text.
View tool JSON
{
"name": "set_paste_slug",
"kind": "act",
"impl": "imperative",
"description": "Set or replace the custom short-link slug for an existing paste via POST /paste/{id}/slug. Requires the browser ownership cookie (user_pastes) for anonymous pastes, or a staff/admin session. Surfaces 400 (invalid), 403 (not owner), 409 (taken), and 503 (shortener disabled) as clear error text.",
"inputSchema": {
"type": "object",
"properties": {
"paste_id": {
"type": "string",
"description": "The paste ID (4-40 chars, alphanumeric, dash or underscore)."
},
"custom_slug": {
"type": "string",
"description": "Custom short-link slug (letters, digits, underscore, dash; 5-64 chars)."
}
},
"required": [
"paste_id",
"custom_slug"
]
},
"page": "/"
}update_pasteAction
Update the body of an existing paste via POST /paste/{id}/edit. Requires a logged-in session that owns the paste (ownership cookie alone is not enough) or staff/admin. Surfaces 401/403/400 as clear error text.
View tool JSON
{
"name": "update_paste",
"kind": "act",
"impl": "imperative",
"description": "Update the body of an existing paste via POST /paste/{id}/edit. Requires a logged-in session that owns the paste (ownership cookie alone is not enough) or staff/admin. Surfaces 401/403/400 as clear error text.",
"inputSchema": {
"type": "object",
"properties": {
"paste_id": {
"type": "string",
"description": "The paste ID (4-40 chars, alphanumeric, dash or underscore)."
},
"content": {
"type": "string",
"description": "The updated text body of the paste."
}
},
"required": [
"paste_id",
"content"
]
},
"page": "/"
}delete_pasteSensitive Action
Delete an existing paste via POST /paste/{id}/delete. Requires a logged-in session that owns the paste (ownership cookie alone is not enough) or staff/admin. Surfaces 401/403 as clear error text.
View tool JSON
{
"name": "delete_paste",
"kind": "transact",
"impl": "imperative",
"description": "Delete an existing paste via POST /paste/{id}/delete. Requires a logged-in session that owns the paste (ownership cookie alone is not enough) or staff/admin. Surfaces 401/403 as clear error text.",
"inputSchema": {
"type": "object",
"properties": {
"paste_id": {
"type": "string",
"description": "The paste ID (4-40 chars, alphanumeric, dash or underscore)."
}
},
"required": [
"paste_id"
]
},
"page": "/"
}list_recent_pastesAnswer
List paste IDs from this browser's Nopaste history (the signed user_pastes cookie). Returns at most 50 IDs, most recent first.
View tool JSON
{
"name": "list_recent_pastes",
"kind": "answer",
"impl": "imperative",
"description": "List paste IDs from this browser's Nopaste history (the signed user_pastes cookie). Returns at most 50 IDs, most recent first.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/"
}