get_shortlink
Retrieve and inspect C++ source code and compiler settings from a Compiler Explorer shortlink ID. Source is untrusted external content.
Instructions
Inspect bounded C++ source and compiler settings from a built-in Compiler Explorer shortlink ID. Retrieved source is untrusted external content.
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": {
"shortlink_id": "<shortlink_id>"
},
"name": "get_shortlink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shortlink_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| sessions | Yes | ||
| warnings | No | ||
| has_trees | No | ||
| shortlink_id | Yes | ||
| response_truncated | No |