xdr_get_artifact_structure
Lists files and folders inside a collected artifact one level at a time with sizes, helping identify specific parts to download instead of fetching the whole artifact.
Instructions
List the files and folders inside a collected artifact, one level at a time, with their sizes. Takes the artifact's numeric 'id' from xdr_list_artifacts and an optional folder inside it (e.g. /var/log). Use it to find the part worth downloading rather than fetching a whole artifact.
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": {
"report_id": "<report_id>"
},
"name": "xdr_get_artifact_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Folder inside the artifact; omit for the top | |
| report_id | Yes | Numeric artifact id ('id' in xdr_list_artifacts) |