Loading...
Loading...
DingTalk File Management (storage layer, covering DingTalk Drive and Document Space). Use when the user mentions ordinary files or folders in DingTalk Drive/Document Space/My Documents, finding/recently accessed or edited document lists, uploading/downloading/copying/moving/renaming/deleting/recycle bin/permissions/comments/metadata, or comparing local and DingTalk Drive folders, pulling, pushing, two-way sync; it also handles storage management for online document nodes. Document body editing and export go through dingtalk-doc; explicit knowledge base spaces and in-space node organization go through dingtalk-wiki. Command prefix: dws drive.
npx skill4agent add dingtalk-real-ai/dingtalk-workspace-cli dingtalk-drivedws--format jsonunknown flagunknown commandisOrgCurrent=true--yescomplete/hasMore/stopReason/failuresdingtalk-shareddriveresultdata_schemaunknown flagunknown commanddws shortcut list --service drive --format json| User Intent | Unique Recommended Entry | Key Boundaries |
|---|---|---|
| Find files globally by name or keyword | | Auto-paginate when a full search is needed; omit |
| Browse root directory or a known folder | | Auto-paginate when full browsing is needed; omit |
| Discover a DingTalk Drive org space or “My Files” space | | Drive read-only prerequisite; orgSpace paginates by nextToken; return to Drive after taking spaceId/rootFolderId |
| <!-- dws-intent: drive.recent.documents -->View recently accessed/edited document list | | 1=recently edited; default is recently accessed; use directly when there are no topic, person, direction, or action conditions |
| View node type and metadata | | Add stats/publish/cover as needed; do not force for ordinary lists |
| Download an ordinary file | | Current shortcut accepts an ID; for online documents use |
| Get only a temporary download URL without writing to disk | | Use when the Agent sandbox/external system downloads itself; mutually exclusive with disk-writing parameters such as |
| Upload an ordinary file to DingTalk Drive or knowledge base | | Defaults to DingTalk Drive; with |
| Manage global comments on ordinary files | | Reuses the new Doc/Sheet comment chain; old |
| Create a folder | | Shortcut is submitted and read back |
| Create an independent copy of an ordinary file | | Execute after user authorization; do not try |
| Copy an online document node | | Ordinary DingTalk Drive files are rejected; Base struct copy goes through AITable |
| Move a node | | Destructive change; follow Runtime confirmation |
| Rename a node | | Check the final name after writing |
| Compare local and DingTalk Drive folders | | Read-only; exact MD5 by default; no pull or push first |
| Pull a DingTalk Drive folder to local | | Safe default: no overwrite; first run |
| Push a local folder to DingTalk Drive | | Safe default: no overwrite; dry-run first; will not delete extra remote files |
| Two-way reconcile folders | | dry-run first; conflict policy must be explicitly retained |
dws drive +delete --node <dentryUuid>+recycle-list/+recycle-restore+version-history/+version-get/+version-download/+version-revert+star-*+publish-get/+publish-unset+publish-set+inspect+create-shortcut+list+info+inspect+find-file+search+search-docsdoc +searchmySpace/rootFolderIddoc +createdrive +move+import --workspace <new workspaceId>+move-to-drive --workspace <new workspaceId>orgSpacemySpacedws wiki space list --type <type> --format json--cursor <nextToken>nextToken+search+list+upload--workspace+import+media-insertdoc +exportlocalPathdrive +upload--yes+inspect+renamestatus/pull/push/synctype=able--target-folder-id--target-root+inspect/+download/+listresult.fileIddws drive info --node <URL> --format jsondrive infoextension=dlinkresult.fileIdlinkSourceInfodws doc info --node <result.fileId> --format jsonlinkSourceInfo.nodeIdresult.fileId+list/+search/+recent--page-all --max-pages <N> --max-items <N>--page-all+downloadsizeBytes > 0+upload--workspacedoc/get_document_infoname + extensionok/outcomepartial_successfailedunknownnextCursor--node--folderrecycleItemId+list --limit+search --limit--yes--yesadocaxlsable..status/pull/push/sync--local-folder--quick| Trigger condition | Reference |
|---|---|
| URL, file type, or cross-product boundary | intent-guide |
| Folder compare, pull, push, or two-way sync | folder-sync |
| Low-frequency permissions, versions, recycle bin, publishing state | corresponding section in drive reference |
| Document queries, import, and template-preserving workflows | lite-recipes |
unknown flagunknown commanddoc +exportunknown+copy+media-insertable+base-delete+move-to-drivemySpacedws wiki space list --type orgSpace|mySpaceorgWikiSpace/myWikiSpacedoc +import