create_shortlink
Create a shareable Compiler Explorer shortlink that validates and permanently stores C++ source with up to six compiler configurations for public access.
Instructions
Validate and permanently store one C++ source with one to six resolved compiler configurations, returning a shareable Compiler Explorer shortlink. Shortlink creation transmits source and settings for persistent, publicly retrievable storage by the configured Compiler Explorer backend; there is no delete operation.
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": {
"source": "<source>"
},
"name": "create_shortlink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| compilers | No | ||
| validate_compilation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| warnings | No | ||
| compilers | Yes | ||
| shortlink_id | Yes | ||
| response_truncated | No | ||
| compilation_validated | Yes |