Set the editor language
set_languageSet the syntax-highlighting language for a shared pad, with changes visible to all current viewers.
Instructions
Sets the syntax-highlighting language of a pad (Monaco language id, e.g. "markdown", "javascript", "rust"). Last writer wins; the change is visible to everyone who has the pad open.
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": {
"id": "<id>",
"language": "<language>"
},
"name": "set_language"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the pad, the part after # in its URL | |
| language | Yes | Monaco editor language id for syntax highlighting, e.g. "markdown", "javascript", "rust", "plaintext" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | Shareable; anyone with it can read and edit. | |
| note | Yes | ||
| language | Yes | ||
| characters | Yes | Length of the pad after the write, in codepoints. |