list_gcode_files
Browse G-code files on the printer with sizes, modified times, and optional print-time/filament estimates; filter by name and sort to choose the filename needed for starting a print.
Instructions
List G-code files on the printer with size, modified time, and (when scanned) estimated print time and filament use. Filter with contains, sort by name or modified time. This is where start_print's filenames come from.
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": "list_gcode_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | gcodes | |
| limit | No | ||
| sort_by | No | modified | |
| contains | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||