get_site_config
Retrieve the raw nginx configuration for a domain from sites-available. Avoid errors by calling list_sites first to verify the domain exists.
Instructions
Get the raw, unparsed nginx config file for one domain from sites-available. Throws if no config exists for that domain - call list_sites first if you're not sure it exists.
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": {
"domain": "<domain>"
},
"name": "get_site_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain as it appears in sites-available, e.g. mysite.julcap.net |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| raw_config | Yes | Full contents of the nginx config file, verbatim |