Content पर जाएं

Workspace फ़ाइलों की सूची

GET/v1/agents/sessions/{session_id}/workspace-files

एक Session workspace directory में मौजूदा file paths और sizes की सूची पाएँ। यह केवल metadata की listing है, attachment history या artifact content नहीं। अज्ञात या दोहराए गए query parameters 400 लौटाते हैं।

Path parameters

stringsession_idज़रूरी

Session ID (ses_ prefix)।

Query parameters

वैकल्पिक<string>path

Absolute directory /workspace या उसके नीचे की normalized directory। अधिकतम 4096 bytes; traversal, backslashes या trailing slash नहीं।

डिफ़ॉल्ट: /workspace

वैकल्पिक<integer>limit

पेज का आकार 1 से 100 तक।

डिफ़ॉल्ट: 20

वैकल्पिक<string>order

Path sort order: asc या desc।

डिफ़ॉल्ट: asc

वैकल्पिक<string>page

पिछले response से मिला opaque next मान। पहले पेज पर न भेजें; खाली string न भेजें। path, order और limit को न बदलें।

Response fields

stringobjectज़रूरी

हमेशा page।

arraydataज़रूरी

मौजूदा directory की फ़ाइलें, हर एक path और size_bytes के साथ। यह recursive listing नहीं है।

string | nullnextज़रूरी

आगे जारी रखने के लिए यह मान page के रूप में भेजें; अंत में null।

booleanhas_moreज़रूरी

क्या एक और पेज उपलब्ध है।

Workspace reads workspace_provisioning, workspace_environment_missing, workspace_cursor_invalid या workspace_unavailable लौटा सकते हैं। Cursor अमान्य होने पर पहले पेज से फिर शुरू करें। Download किए जा सकने वाले generated outputs खोजने के लिए Artifacts इस्तेमाल करें।