import GboxSDK, { isFileOperator } from "gbox-sdk";
const gboxSDK = new GboxSDK({
apiKey: process.env["GBOX_API_KEY"] // This is the default and can be omitted
});
async function main() {
const box = await gboxSDK.create({ type: "linux" });
const listResult = await box.fs.list({
path: "/tmp",
depth: 2,
});
const files = listResult.filter(isFileOperator);
for (const file of files) {
// you can read the file content
const { content } = await file.read();
console.info(`๐ ${file.data.name} (${file.data.size}) - ${file.data.path}`);
console.info(`file content: ${content}`);
}
// List files in the home directory
const listInfo = await box.fs.listInfo({
path: "/tmp",
depth: 2,
});
console.log("Files and directories:");
console.info(JSON.stringify(listInfo, null, 2));
}
main();
import os
import json
from gbox_sdk import GboxSDK
from gbox_sdk.utils import is_file_operator
def main():
gbox_sdk = GboxSDK(api_key=os.environ["GBOX_API_KEY"])
box = gbox_sdk.create(type="linux")
list_result = box.fs.list(
path="/tmp",
depth=2
)
files = [item for item in list_result if is_file_operator(item)]
for file in files:
# you can read the file content
content = file.read()
print(f"๐ {file.data.name} ({file.data.size}) - {file.data.path}")
print(f"file content: {content}")
# List files in the home directory
list_info = box.fs.list_info(
path="/tmp",
depth=2
)
print("Files and directories:")
print(list_info)
if __name__ == "__main__":
main()
Lists files and directories in a box. You can specify the directory path and depth, and optionally a working directory. The response includes metadata such as type, size, permissions, and last modified time.
GET
/
boxes
/
{boxId}
/
fs
/
list
JavaScript
import GboxSDK, { isFileOperator } from "gbox-sdk";
const gboxSDK = new GboxSDK({
apiKey: process.env["GBOX_API_KEY"] // This is the default and can be omitted
});
async function main() {
const box = await gboxSDK.create({ type: "linux" });
const listResult = await box.fs.list({
path: "/tmp",
depth: 2,
});
const files = listResult.filter(isFileOperator);
for (const file of files) {
// you can read the file content
const { content } = await file.read();
console.info(`๐ ${file.data.name} (${file.data.size}) - ${file.data.path}`);
console.info(`file content: ${content}`);
}
// List files in the home directory
const listInfo = await box.fs.listInfo({
path: "/tmp",
depth: 2,
});
console.log("Files and directories:");
console.info(JSON.stringify(listInfo, null, 2));
}
main();
import os
import json
from gbox_sdk import GboxSDK
from gbox_sdk.utils import is_file_operator
def main():
gbox_sdk = GboxSDK(api_key=os.environ["GBOX_API_KEY"])
box = gbox_sdk.create(type="linux")
list_result = box.fs.list(
path="/tmp",
depth=2
)
files = [item for item in list_result if is_file_operator(item)]
for file in files:
# you can read the file content
content = file.read()
print(f"๐ {file.data.name} ({file.data.size}) - {file.data.path}")
print(f"file content: {content}")
# List files in the home directory
list_info = box.fs.list_info(
path="/tmp",
depth=2
)
print("Files and directories:")
print(list_info)
if __name__ == "__main__":
main()
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"GBOX docs","colors":{"primary":"#7139ee","light":"#7139ee","dark":"#7139ee"},"logo":{"light":"https://mintcdn.com/gbox-551f8aad/T-DuPp0A8fmxumYw/logo/light.svg?fit=max\u0026auto=format\u0026n=T-DuPp0A8fmxumYw\u0026q=85\u0026s=786e91dc97663517a975e2a4cdd38dc0","dark":"https://mintcdn.com/gbox-551f8aad/T-DuPp0A8fmxumYw/logo/dark.svg?fit=max\u0026auto=format\u0026n=T-DuPp0A8fmxumYw\u0026q=85\u0026s=88533bdebb4759a8f4b0be55f218c270"},"favicon":"/favicon.svg","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["javascript","python","curl"]}},"navbar":{"links":[{"label":"Support","href":"mailto:connect@gbox.ai"},{"label":"Blog","href":"https://blog.gbox.ai"}],"primary":{"type":"button","label":"Try it now","href":"https://gbox.ai"}},"footer":{"socials":{"github":"https://github.com/babelcloud","x":"https://x.com/gboxai","youtube":"https://www.youtube.com/channel/UCY0nIeSubQ7jmE1jqnSUDmA","linkedin":"https://www.linkedin.com/company/gbox-ai"}},"contextual":{"options":["copy","view","chatgpt","claude"]},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gbox-551f8aad","hasAudioNarration":false,"actualSubdomain":"gbox-551f8aad","customDomains":["docs.gbox.ai"],"gitSource":{"type":"github","owner":"babelcloud","repo":"gbox-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10b5d79ffae5051c400a81"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae9292db138cc6bcc8af591:success","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API Reference","count":79},{"language":"default","tag":"UI Action","count":26},{"language":"default","tag":"Android","count":17},{"language":"default","tag":"Guides","count":16},{"language":"default","tag":"Box","count":13},{"language":"default","tag":"Media","count":10},{"language":"default","tag":"Browser","count":9},{"language":"default","tag":"Integrations","count":9},{"language":"default","tag":"File System","count":7},{"language":"default","tag":"Run Code","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"[data-component-part=\"code-group-tab-bar\"] img{background-color:transparent!important}img[src*=\"shields.io\"]{display:inline!important;vertical-align:middle;margin:0;padding:0}"}]}
{"page":{"pagePath":"api-reference/file-system/list-box-files","slug":"/api-reference/file-system/list-box-files","pageMetadata":{"openapi":"get /boxes/{boxId}/fs/list","title":"List box files","description":"Lists files and directories in a box. You can specify the directory path and depth, and optionally a working directory. The response includes metadata such as type, size, permissions, and last modified time.","href":"/api-reference/file-system/list-box-files"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Lists files and directories in a box. You can specify the directory path and depth, and optionally a working directory. The response includes metadata such as type, size, permissions, and last modified time.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"get /boxes/{boxId}/fs/list","title":"List box files","description":"Lists files and directories in a box. You can specify the directory path and depth, and optionally a working directory. The response includes metadata such as type, size, permissions, and last modified time.","href":"/api-reference/file-system/list-box-files"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/gbox-551f8aad/34a2119a7f5640ae/.lintstagedrc.js","/_mintlify/custom/gbox-551f8aad/a6375ba38a2d9939/eslint.config.js"],"openApiReferenceData":{"operation":{"description":"Lists files and directories in a box. You can specify the directory path and depth, and optionally a working directory. The response includes metadata such as type, size, permissions, and last modified time.","operationId":"FileSystemController_listFiles","parameters":["8f6e2bbb-21dc-41aa-a0d2-0479f35c4c9c","cab0100e-50dd-4317-941b-9c3c25c36917","174842af-d279-41da-847a-c59b5ecf2df0","6e797a49-391c-4a96-b8c5-2f21ad0073aa"],"responses":{"200":"4fd62533-2cf9-4841-8188-d556c84e5ac4","404":"91deceb6-98c6-4509-bcd0-ad0f12d4069e"},"security":["15779a1e-09ef-4dc5-ac3b-8c9c2dffd912"],"summary":"List box files","tags":["File System"],"x-codeSamples":[{"lang":"JavaScript","source":"import GboxSDK, { isFileOperator } from \"gbox-sdk\";\n\nconst gboxSDK = new GboxSDK({\n apiKey: process.env[\"GBOX_API_KEY\"] // This is the default and can be omitted\n});\n\nasync function main() {\n const box = await gboxSDK.create({ type: \"linux\" });\n\n const listResult = await box.fs.list({\n path: \"/tmp\",\n depth: 2,\n });\n\n const files = listResult.filter(isFileOperator);\n\n for (const file of files) {\n // you can read the file content\n const { content } = await file.read();\n console.info(`๐ ${file.data.name} (${file.data.size}) - ${file.data.path}`);\n console.info(`file content: ${content}`);\n }\n\n // List files in the home directory\n const listInfo = await box.fs.listInfo({\n path: \"/tmp\",\n depth: 2,\n });\n\n console.log(\"Files and directories:\");\n console.info(JSON.stringify(listInfo, null, 2));\n}\n\nmain();"},{"lang":"Python","source":"import os\nimport json\nfrom gbox_sdk import GboxSDK\nfrom gbox_sdk.utils import is_file_operator\n\ndef main():\n gbox_sdk = GboxSDK(api_key=os.environ[\"GBOX_API_KEY\"])\n\n box = gbox_sdk.create(type=\"linux\")\n\n list_result = box.fs.list(\n path=\"/tmp\",\n depth=2\n )\n\n files = [item for item in list_result if is_file_operator(item)]\n\n for file in files:\n # you can read the file content\n content = file.read()\n print(f\"๐ {file.data.name} ({file.data.size}) - {file.data.path}\")\n print(f\"file content: {content}\")\n\n # List files in the home directory\n list_info = box.fs.list_info(\n path=\"/tmp\",\n depth=2\n )\n\n print(\"Files and directories:\")\n print(list_info)\n\nif __name__ == \"__main__\":\n main()"},{"lang":"Go","source":"package main\n\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/gbox/gbox-sdk-go\"\n)\n\nfunc main() {\n\tgboxSDK := gbox.NewGboxSDK(os.Getenv(\"GBOX_API_KEY\"))\n\n\tbox, err := gboxSDK.Create(context.Background(), gbox.CreateOptions{Type: \"linux\"})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to create linux box: %v\", err)\n\t}\n\n\tlistResult, err := box.Fs.List(context.Background(), \u0026gbox.ListFileRequest{\n\t\tPath: \"/tmp\",\n\t\tDepth: 2,\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to list files: %v\", err)\n\t}\n\n\tfiles := gbox.FilterFiles(listResult)\n\n\tfor _, file := range files {\n\t\t// you can read the file content\n\t\tcontent, err := file.Read(context.Background())\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Failed to read file %s: %v\", file.Data().Name, err)\n\t\t\tcontinue\n\t\t}\n\t\tfmt.Printf(\"๐ %s (%s) - %s\\n\", file.Data().Name, file.Data().Size, file.Data().Path)\n\t\tfmt.Printf(\"file content: %s\\n\", content)\n\t}\n\n\t// List files in the home directory\n\tlistInfo, err := box.Fs.ListInfo(context.Background(), \u0026gbox.ListFileRequest{\n\t\tPath: \"/tmp\",\n\t\tDepth: 2,\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to list files info: %v\", err)\n\t}\n\n\tfmt.Println(\"Files and directories:\")\n\tlistInfoJSON, _ := json.MarshalIndent(listInfo, \"\", \" \")\n\tfmt.Printf(\"%s\\n\", string(listInfoJSON))\n}"}],"method":"get","type":"path","servers":["f0957f46-1012-4379-83b5-d47a11963c67"],"path":"/boxes/{boxId}/fs/list","baseUrlOptions":["https://gbox.ai/api/v1"],"title":"List box files","codeSamples":[{"lang":"JavaScript","source":"import GboxSDK, { isFileOperator } from \"gbox-sdk\";\n\nconst gboxSDK = new GboxSDK({\n apiKey: process.env[\"GBOX_API_KEY\"] // This is the default and can be omitted\n});\n\nasync function main() {\n const box = await gboxSDK.create({ type: \"linux\" });\n\n const listResult = await box.fs.list({\n path: \"/tmp\",\n depth: 2,\n });\n\n const files = listResult.filter(isFileOperator);\n\n for (const file of files) {\n // you can read the file content\n const { content } = await file.read();\n console.info(`๐ ${file.data.name} (${file.data.size}) - ${file.data.path}`);\n console.info(`file content: ${content}`);\n }\n\n // List files in the home directory\n const listInfo = await box.fs.listInfo({\n path: \"/tmp\",\n depth: 2,\n });\n\n console.log(\"Files and directories:\");\n console.info(JSON.stringify(listInfo, null, 2));\n}\n\nmain();"},{"lang":"Python","source":"import os\nimport json\nfrom gbox_sdk import GboxSDK\nfrom gbox_sdk.utils import is_file_operator\n\ndef main():\n gbox_sdk = GboxSDK(api_key=os.environ[\"GBOX_API_KEY\"])\n\n box = gbox_sdk.create(type=\"linux\")\n\n list_result = box.fs.list(\n path=\"/tmp\",\n depth=2\n )\n\n files = [item for item in list_result if is_file_operator(item)]\n\n for file in files:\n # you can read the file content\n content = file.read()\n print(f\"๐ {file.data.name} ({file.data.size}) - {file.data.path}\")\n print(f\"file content: {content}\")\n\n # List files in the home directory\n list_info = box.fs.list_info(\n path=\"/tmp\",\n depth=2\n )\n\n print(\"Files and directories:\")\n print(list_info)\n\nif __name__ == \"__main__\":\n main()"},{"lang":"Go","source":"package main\n\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/gbox/gbox-sdk-go\"\n)\n\nfunc main() {\n\tgboxSDK := gbox.NewGboxSDK(os.Getenv(\"GBOX_API_KEY\"))\n\n\tbox, err := gboxSDK.Create(context.Background(), gbox.CreateOptions{Type: \"linux\"})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to create linux box: %v\", err)\n\t}\n\n\tlistResult, err := box.Fs.List(context.Background(), \u0026gbox.ListFileRequest{\n\t\tPath: \"/tmp\",\n\t\tDepth: 2,\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to list files: %v\", err)\n\t}\n\n\tfiles := gbox.FilterFiles(listResult)\n\n\tfor _, file := range files {\n\t\t// you can read the file content\n\t\tcontent, err := file.Read(context.Background())\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Failed to read file %s: %v\", file.Data().Name, err)\n\t\t\tcontinue\n\t\t}\n\t\tfmt.Printf(\"๐ %s (%s) - %s\\n\", file.Data().Name, file.Data().Size, file.Data().Path)\n\t\tfmt.Printf(\"file content: %s\\n\", content)\n\t}\n\n\t// List files in the home directory\n\tlistInfo, err := box.Fs.ListInfo(context.Background(), \u0026gbox.ListFileRequest{\n\t\tPath: \"/tmp\",\n\t\tDepth: 2,\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to list files info: %v\", err)\n\t}\n\n\tfmt.Println(\"Files and directories:\")\n\tlistInfoJSON, _ := json.MarshalIndent(listInfo, \"\", \" \")\n\tfmt.Printf(\"%s\\n\", string(listInfoJSON))\n}"}],"requestExampleLanguages":["javascript","python","bash"],"requiredOnlyExamples":true,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"8f6e2bbb-21dc-41aa-a0d2-0479f35c4c9c":{"name":"boxId","required":true,"in":"path","description":"Box ID","schema":{"example":"c9bdc193-b54b-4ddb-a035-5ac0c598d32d","type":"string","isRequired":true,"description":"Box ID","uniqueKey":"","typeLabel":"string"}},"cab0100e-50dd-4317-941b-9c3c25c36917":{"name":"workingDir","required":false,"in":"query","description":"Working directory. If not provided, the file will be read from the `box.config.workingDir` directory.","schema":{"title":"FileSystemBase","example":"/home/user/documents","type":"string","isRequired":false,"description":"Working directory. If not provided, the file will be read from the `box.config.workingDir` directory.","uniqueKey":"","typeLabel":"string"}},"174842af-d279-41da-847a-c59b5ecf2df0":{"name":"path","required":true,"in":"query","description":"Target directory path in the box","schema":{"title":"ListFile","example":"/home/user/documents","type":"string","isRequired":true,"description":"Target directory path in the box","uniqueKey":"","typeLabel":"string"}},"6e797a49-391c-4a96-b8c5-2f21ad0073aa":{"name":"depth","required":false,"in":"query","description":"Depth of the directory","schema":{"title":"ListFile","default":1,"example":2,"type":"number","isRequired":false,"description":"Depth of the directory","uniqueKey":"","typeLabel":"number"}}},"responses":{"4fd62533-2cf9-4841-8188-d556c84e5ac4":{"description":"List files","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"description":"Array of files and directories","title":"QueryBoxResult","example":[{"type":"dir","name":"projects","path":"/home/user/documents/projects/","mode":"755","lastModified":"2024-01-15T10:30:00.000Z"},{"type":"file","name":"readme.txt","path":"/home/user/documents/readme.txt","size":"1.2KB","mode":"644","lastModified":"2024-01-15T10:30:00.000Z"}],"type":"array","items":{"oneOf":[{"type":"object","title":"File","description":"File system file representation","required":["type","name","path","size","mode","lastModified"],"properties":{"type":{"type":"string","enum":["file"],"description":"File type indicator","title":"File","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Name of the file","title":"File","example":"example.txt","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.name","typeLabel":"string"},"path":{"type":"string","description":"Full path to the file in the box","title":"File","example":"/path/to/example.txt","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.path","typeLabel":"string"},"size":{"type":"string","description":"Size of the file","title":"File","example":"10MB","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.size","typeLabel":"string"},"mode":{"type":"string","description":"File metadata","title":"File","example":"755","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.mode","typeLabel":"string"},"lastModified":{"format":"date-time","type":"string","description":"Last modified time of the file","title":"File","example":"2021-01-01T00:00:00Z","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.lastModified","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.items.[INDEX].oneOf.0","typeLabel":"File ยท object"},{"type":"object","title":"Directory","description":"File system directory representation","required":["type","name","path","mode","lastModified"],"properties":{"type":{"type":"string","enum":["dir"],"description":"Directory type indicator","title":"Dir","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Name of the directory","title":"Dir","example":"example","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.name","typeLabel":"string"},"path":{"type":"string","description":"Full path to the directory in the box","title":"Dir","example":"/path/to/example/","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.path","typeLabel":"string"},"mode":{"type":"string","description":"Directory metadata","title":"Dir","example":"755","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.mode","typeLabel":"string"},"lastModified":{"format":"date-time","type":"string","description":"Last modified time of the directory","title":"Dir","example":"2021-01-01T00:00:00Z","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.lastModified","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.items.[INDEX].oneOf.1","typeLabel":"Directory ยท object"}],"uniqueKey":"data.items.[INDEX]","typeLabel":"File ยท object | Directory ยท object"},"isRequired":true,"uniqueKey":"data","typeLabel":"(File ยท object | Directory ยท object)[]"}},"title":"List File Result","description":"Response containing directory listing results","required":["data"],"uniqueKey":"","typeLabel":"List File Result ยท object"},"examples":{"Example":{"title":"Example","value":{"data":[{"type":"dir","name":"projects","path":"/home/user/documents/projects/","mode":"755","lastModified":"2024-01-15T10:30:00.000Z"},{"type":"file","name":"readme.txt","path":"/home/user/documents/readme.txt","size":"1.2KB","mode":"644","lastModified":"2024-01-15T10:30:00.000Z"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"91deceb6-98c6-4509-bcd0-ad0f12d4069e":{"description":"Directory not found","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"15779a1e-09ef-4dc5-ac3b-8c9c2dffd912":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Enter your API Key in the format: Bearer \u003ctoken>. Get it from https://gbox.ai","scopes":[]}}},"servers":{"f0957f46-1012-4379-83b5-d47a11963c67":{"url":"https://gbox.ai/api/v1","description":"Production Server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Enter your API Key in the format: Bearer \u003ctoken>. Get it from https://gbox.ai","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Enter your API Key in the format: Bearer \u003ctoken>. Get it from https://gbox.ai","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"openapi.documented.yml"},"subdomain":"gbox-551f8aad","siteName":"GBOX docs","title":"List box files - GBOX docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-09-19T08:32:43.122Z","originalFileLocation":"api-reference/file-system/list-box-files.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Lists files and directories in a box. You can specify the directory path and depth, and optionally a working directory. The response includes metadata such as type, size, permissions, and last modified time.\">\u003cmeta data-mint-head name=\"application-name\" content=\"GBOX docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List box files - GBOX docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Lists files and directories in a box. You can specify the directory path and depth, and optionally a working directory. The response includes metadata such as type, size, permissions, and last modified time.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"GBOX docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gbox.ai/api-reference/file-system/list-box-files\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gbox-551f8aad.mintlify.site/_mintlify/api/og/v2?division=File+System\u0026amp;title=List+box+files\u0026amp;description=Lists+files+and+directories+in+a+box.+You+can+specify+the+directory+path+and+depth%2C+and+optionally+a+working+directory.+The+response+includes+metadata+such+as+t\u0026amp;theme=b843ea8c3da74595ac0eb603\u0026amp;signature=2b7a32424b5c7f36dffeb5209d907ed577d670581fba57fdac1f1c7ed68ea7c3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"List box files - GBOX docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Lists files and directories in a box. You can specify the directory path and depth, and optionally a working directory. The response includes metadata such as type, size, permissions, and last modified time.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gbox-551f8aad.mintlify.site/_mintlify/api/og/v2?division=File+System\u0026amp;title=List+box+files\u0026amp;description=Lists+files+and+directories+in+a+box.+You+can+specify+the+directory+path+and+depth%2C+and+optionally+a+working+directory.+The+response+includes+metadata+such+as+t\u0026amp;theme=b843ea8c3da74595ac0eb603\u0026amp;signature=2b7a32424b5c7f36dffeb5209d907ed577d670581fba57fdac1f1c7ed68ea7c3\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"GBOX docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7139ee\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gbox.ai/api-reference/file-system/list-box-files\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/file-system/list-box-files.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gbox.ai/#organization\",\"name\":\"GBOX docs\",\"url\":\"https://docs.gbox.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gbox-551f8aad/T-DuPp0A8fmxumYw/logo/light.svg?fit=max\u0026auto=format\u0026n=T-DuPp0A8fmxumYw\u0026q=85\u0026s=786e91dc97663517a975e2a4cdd38dc0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gbox.ai#website\",\"name\":\"GBOX docs\",\"url\":\"https://docs.gbox.ai\",\"publisher\":{\"@id\":\"https://docs.gbox.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gbox.ai/api-reference/file-system/list-box-files#webpage\",\"url\":\"https://docs.gbox.ai/api-reference/file-system/list-box-files\",\"name\":\"List box files\",\"description\":\"Lists files and directories in a box. You can specify the directory path and depth, and optionally a working directory. The response includes metadata such as type, size, permissions, and last modified time.\",\"dateModified\":\"2025-09-19T08:32:43.122Z\",\"isPartOf\":{\"@id\":\"https://docs.gbox.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gbox.ai/api-reference/file-system/list-box-files#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gbox.ai/api-reference/file-system/list-box-files#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"GBOX docs\",\"item\":\"https://docs.gbox.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List box files\",\"item\":\"https://docs.gbox.ai/api-reference/file-system/list-box-files\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.gbox.ai/api-reference/file-system/list-box-files#apireference\",\"headline\":\"List box files\",\"name\":\"List box files\",\"description\":\"Lists files and directories in a box. You can specify the directory path and depth, and optionally a working directory. The response includes metadata such as type, size, permissions, and last modified time.\",\"url\":\"https://docs.gbox.ai/api-reference/file-system/list-box-files\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gbox.ai/api-reference/file-system/list-box-files#webpage\"},\"dateModified\":\"2025-09-19T08:32:43.122Z\",\"publisher\":{\"@id\":\"https://docs.gbox.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gbox.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"GBOX docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"GBOX docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/file-system/list-box-files.md","siteName":"GBOX docs","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/leader-board/os-world"}]},{"tab":"API Reference","groups":[{"group":"Model","tag":"beta","pages":[{"openapi":"post /model","title":"Generate Coordinates","href":"/api-reference/model/generate-coordinates-for-a-model"}]},{"group":"Box","pages":[{"openapi":"post /boxes/android","title":"Create android box","href":"/api-reference/box/create-android-box"},{"openapi":"post /boxes/linux","title":"Create linux box","href":"/api-reference/box/create-linux-box"},{"openapi":"get /boxes","title":"List box","href":"/api-reference/box/list-box"},{"openapi":"post /boxes/{boxId}/terminate","title":"Terminate box","href":"/api-reference/box/terminate-box"},{"openapi":"get /boxes/{boxId}","title":"Get box","href":"/api-reference/box/get-box"},{"openapi":"post /boxes/{boxId}/live-view-url","title":"Live view url","href":"/api-reference/box/live-view-url"},{"openapi":"post /boxes/{boxId}/web-terminal-url","title":"Web terminal url","href":"/api-reference/box/web-terminal-url"},{"openapi":"get /boxes/{boxId}/display","title":"Get box display","href":"/api-reference/box/get-box-display"},{"openapi":"post /boxes/{boxId}/resolution","title":"Set screen resolution","href":"/api-reference/box/set-screen-resolution"},{"openapi":"post /boxes/{boxId}/storage/presigned-url","title":"Create presigned url","href":"/api-reference/box/create-presigned-url"},{"openapi":"get /boxes/{boxId}/proxy","title":"Get proxy","href":"/api-reference/box/get-proxy"},{"openapi":"post /boxes/{boxId}/proxy","title":"Set proxy","href":"/api-reference/box/set-proxy"},{"openapi":"delete /boxes/{boxId}/proxy","title":"Clear proxy","href":"/api-reference/box/clear-proxy"}]},{"group":"UI Action","pages":[{"openapi":"post /boxes/{boxId}/actions/elements/detect","title":"Detect UI elements","href":"/api-reference/ui-action/detect-ui-elements"},{"openapi":"post /boxes/{boxId}/actions/click","title":"Click","href":"/api-reference/ui-action/click"},{"openapi":"post /boxes/{boxId}/actions/tap","title":"Tap","href":"/api-reference/ui-action/tap"},{"openapi":"post /boxes/{boxId}/actions/touch","title":"Touch","href":"/api-reference/ui-action/touch"},{"openapi":"post /boxes/{boxId}/actions/drag","title":"Drag","href":"/api-reference/ui-action/drag"},{"openapi":"post /boxes/{boxId}/actions/scroll","title":"Scroll","href":"/api-reference/ui-action/scroll"},{"openapi":"post /boxes/{boxId}/actions/swipe","title":"Swipe","href":"/api-reference/ui-action/swipe"},{"openapi":"post /boxes/{boxId}/actions/press-key","title":"Press key","href":"/api-reference/ui-action/press-key"},{"openapi":"post /boxes/{boxId}/actions/press-button","title":"Press button","href":"/api-reference/ui-action/press-button"},{"openapi":"post /boxes/{boxId}/actions/long-press","title":"Long press","href":"/api-reference/ui-action/long-press"},{"openapi":"post /boxes/{boxId}/actions/type","title":"Type text","href":"/api-reference/ui-action/type-text"},{"openapi":"post /boxes/{boxId}/actions/move","title":"Move to position","href":"/api-reference/ui-action/move-to-position"},{"openapi":"post /boxes/{boxId}/actions/screen-rotation","title":"Rotate screen","href":"/api-reference/ui-action/rotate-screen"},{"openapi":"post /boxes/{boxId}/actions/screenshot","title":"Take screenshot","href":"/api-reference/ui-action/take-screenshot"},{"openapi":"get /boxes/{boxId}/actions/screen-layout","title":"Get screen layout","href":"/api-reference/ui-action/get-screen-layout"},{"openapi":"post /boxes/{boxId}/actions/recording/start","title":"Start recording","href":"/api-reference/ui-action/start-recording"},{"openapi":"post /boxes/{boxId}/actions/recording/stop","title":"Stop recording","href":"/api-reference/ui-action/stop-recording"},{"openapi":"post /boxes/{boxId}/actions/recording/rewind","title":"Enable rewind recording","href":"/api-reference/ui-action/enable-rewind-recording"},{"openapi":"delete /boxes/{boxId}/actions/recording/rewind","title":"Disable rewind recording","href":"/api-reference/ui-action/disable-rewind-recording"},{"openapi":"post /boxes/{boxId}/actions/recording/rewind/extract","title":"Extract rewind recording","href":"/api-reference/ui-action/extract-rewind-recording"},{"openapi":"get /boxes/{boxId}/actions/clipboard","title":"Get clipboard","href":"/api-reference/ui-action/get-clipboard"},{"openapi":"post /boxes/{boxId}/actions/clipboard","title":"Set clipboard","href":"/api-reference/ui-action/set-clipboard"},{"openapi":"get /boxes/{boxId}/actions/settings","title":"Get settings","href":"/api-reference/ui-action/get-settings"},{"openapi":"put /boxes/{boxId}/actions/settings","title":"Update settings","href":"/api-reference/ui-action/update-settings"},{"openapi":"delete /boxes/{boxId}/actions/settings","title":"Reset settings","href":"/api-reference/ui-action/reset-settings"}]},{"group":"Run Code","pages":[{"openapi":"post /boxes/{boxId}/run-code","title":"Run code on the box","href":"/api-reference/run-code/run-code-on-the-box"}]},{"group":"Command","pages":[{"openapi":"post /boxes/{boxId}/commands","title":"Exec command","description":"Execute a command on a running box. This endpoint allows you to send commands to the box and receive the output","href":"/api-reference/command/exec-command"}]},{"group":"File System","pages":[{"openapi":"get /boxes/{boxId}/fs/list","title":"List box files","href":"/api-reference/file-system/list-box-files"},{"openapi":"get /boxes/{boxId}/fs/info","title":"Get file/dir","description":"Retrieves metadata for a specific file or directory inside a box","href":"/api-reference/file-system/get-filedir"},{"openapi":"get /boxes/{boxId}/fs/read","title":"Read box file","href":"/api-reference/file-system/read-box-file"},{"openapi":"post /boxes/{boxId}/fs/write","title":"Write box file","href":"/api-reference/file-system/write-box-file"},{"openapi":"delete /boxes/{boxId}/fs","title":"Delete box file/dir","href":"/api-reference/file-system/delete-box-filedir"},{"openapi":"post /boxes/{boxId}/fs/rename","title":"Rename box/dir","href":"/api-reference/file-system/rename-boxdir"},{"openapi":"post /boxes/{boxId}/fs/exists","title":"Check if file/dir exists","href":"/api-reference/file-system/check-if-filedir-exists"}]},{"group":"Browser","pages":[{"openapi":"post /boxes/{boxId}/browser/connect-url/cdp","title":"Generate CDP url","href":"/api-reference/browser/generate-cdp-url"},{"openapi":"post /boxes/{boxId}/browser/open","title":"Open browser","href":"/api-reference/browser/open-browser"},{"openapi":"delete /boxes/{boxId}/browser/close","title":"Close browser","href":"/api-reference/browser/close-browser"},{"openapi":"get /boxes/{boxId}/browser/tabs","title":"List all browser tabs","href":"/api-reference/browser/list-all-browser-tabs"},{"openapi":"post /boxes/{boxId}/browser/tabs","title":"Open a new browser tab","href":"/api-reference/browser/open-a-new-browser-tab"},{"openapi":"put /boxes/{boxId}/browser/tabs/{tabId}","title":"Update browser tab URL","href":"/api-reference/browser/update-browser-tab-url"},{"openapi":"post /boxes/{boxId}/browser/tabs/{tabId}/switch","title":"Switch to browser tab","href":"/api-reference/browser/switch-to-browser-tab"},{"openapi":"delete /boxes/{boxId}/browser/tabs/{tabId}","title":"Close a browser tab","href":"/api-reference/browser/close-a-browser-tab"}]},{"group":"Android","tag":"beta","pages":[{"openapi":"get /boxes/{boxId}/android/apps","title":"List apps","href":"/api-reference/android/list-apps"},{"openapi":"get /boxes/{boxId}/android/apps/{packageName}","title":"Get app","href":"/api-reference/android/get-app"},{"openapi":"get /boxes/{boxId}/android/packages/{packageName}","title":"Get pkg","href":"/api-reference/android/get-pkg"},{"openapi":"delete /boxes/{boxId}/android/packages/{packageName}","title":"Uninstall app","href":"/api-reference/android/uninstall-app"},{"openapi":"post /boxes/{boxId}/android/packages","title":"Install app","href":"/api-reference/android/install-app"},{"openapi":"post /boxes/{boxId}/android/packages/{packageName}/open","title":"Open app","href":"/api-reference/android/open-app"},{"openapi":"post /boxes/{boxId}/android/packages/{packageName}/close","title":"Close app","href":"/api-reference/android/close-app"},{"openapi":"post /boxes/{boxId}/android/packages/close-all","title":"Close all apps","href":"/api-reference/android/close-all-apps"},{"openapi":"get /boxes/{boxId}/android/packages/{packageName}/activities","title":"Get pkg activities","href":"/api-reference/android/get-pkg-activities"},{"openapi":"post /boxes/{boxId}/android/packages/{packageName}/restart","title":"Restart app","href":"/api-reference/android/restart-app"},{"openapi":"get /boxes/{boxId}/android/packages","title":"List pkg","href":"/api-reference/android/list-pkg"},{"openapi":"get /boxes/{boxId}/android/packages/simple","title":"List pkg simple","href":"/api-reference/android/list-pkg-simple"},{"openapi":"post /boxes/{boxId}/android/connect-url/appium","title":"Appium Connection","href":"/api-reference/android/generate-appium-connection-url"}]},{"group":"Media","pages":[{"openapi":"get /boxes/{boxId}/media/albums","title":"List albums","href":"/api-reference/media/list-albums"},{"openapi":"post /boxes/{boxId}/media/albums","title":"Create album","href":"/api-reference/media/create-album"},{"openapi":"get /boxes/{boxId}/media/albums/{albumName}","title":"Get album detail","href":"/api-reference/media/get-album-detail"},{"openapi":"delete /boxes/{boxId}/media/albums/{albumName}","title":"Delete album","href":"/api-reference/media/delete-album"},{"openapi":"patch /boxes/{boxId}/media/albums/{albumName}","title":"Update album","href":"/api-reference/media/update-album"},{"openapi":"get /boxes/{boxId}/media/albums/{albumName}/media","title":"List media in album","href":"/api-reference/media/list-media-in-album"},{"openapi":"get /boxes/{boxId}/media/albums/{albumName}/media/{mediaName}","title":"Get media detail","href":"/api-reference/media/get-media-detail"},{"openapi":"delete /boxes/{boxId}/media/albums/{albumName}/media/{mediaName}","title":"Delete media from album","href":"/api-reference/media/delete-media-from-album"},{"openapi":"get /boxes/{boxId}/media/albums/{albumName}/media/{mediaName}/download","title":"Download media","href":"/api-reference/media/download-media"},{"openapi":"get /boxes/{boxId}/media/support","title":"Get media support extensions","href":"/api-reference/media/get-media-support-extensions"}]}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/gbox-cli"}]},{"tab":"Model Context Protocol (MCP)","pages":[{"title":"Model Context Protocol (MCP)","href":"/docs-mcp/docs-mcp-server"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"List box files - GBOX docs","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}