create_shorttext
Create a new shortText and get a shareable shorttext.com URL back. Markdown is supported. Requires an API key in the request Authorization header (Bearer st_live_…, request one from api@shorttext.com) — without it, creation is rejected (reading stays open to everyone).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"body": "<body>"
},
"name": "create_shorttext"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The text content (Markdown supported, max 30,000 chars). | |
| expiry | No | Defaults to "never". | |
| password | No | Required when visibility is "private". | |
| visibility | No | Defaults to "public". "private" requires a password. | |
| burnAfterRead | No | Delete after the first view. Defaults to false. |