Get core config
marzban_config_getReads the Xray core configuration as a structural summary by default, returning raw JSON for a single section or the full config when needed. Use it to inspect inbounds, outbounds, ports, protocols, and routing rules.
Instructions
Reads the Xray core configuration. Defaults to a structural summary (inbound/outbound tags, ports, protocols, routing rule count) — the full config can be tens of KB and this is usually all that's needed. Pass section (e.g. "inbounds") for one key's raw JSON, or section: "raw" for the entire config.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "marzban_config_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| section | No | Return this one top-level key's raw JSON instead of the summary (e.g. "inbounds", "routing"). Use "raw" for the entire config. Omit for a structural summary — prefer that over "raw" unless you specifically need the full JSON. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| mode | Yes | ||
| section | Yes | ||
| summary | Yes |