list_directory
Lists immediate subdirectories and files under a specified root path, helping agents inspect folder structure before accessing or managing 3D printer G-code files.
Instructions
List one directory's immediate contents (subdirectories and files) under a root. Use this instead of list_gcode_files when you care about folder structure.
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_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | gcodes | |
| extended | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||