Loading...
Loading...
DingTalk online text document (adoc) content: search, create, read/edit, blocks, comments, media/attachments, whiteboard/card containers, import/export, versions, templates, permissions, sharing, and Markdown/JSONML. Does not cover whiteboard graphics / native .md / spreadsheets (dingtalk-misc), document spaces and DingTalk Drive storage (dingtalk-drive), knowledge base organization (dingtalk-wiki), AI tables (dingtalk-aitable). Command prefix: dws doc.
npx skill4agent add dingtalk-real-ai/dingtalk-workspace-cli dingtalk-docdws--format jsonunknown flagunknown commandisOrgCurrent=true--yescomplete/hasMore/stopReason/failuresdingtalk-shareddocresultdata_schemaunknown flagunknown commanddws shortcut list --service doc --format json| User Intent | Unique Recommended Entry | Key Boundaries |
|---|---|---|
| <!-- dws-intent: doc.search.by_title -->Locate a document by title or topic | | |
| Recently accessed or recently edited documents | Load | Default is recently accessed, |
| Known alidocs folder URL, list current level | | Reuse the full URL; do not switch to |
| <!-- dws-intent: doc.content.read -->Read body or partial content with known ID/URL | | Use |
| Aggregated view of info, permissions, versions, media, or comments | | Basic metadata is returned by default; use corresponding |
| Create a document and write content | `dws doc +create --name <title> --content <text\ | -\ |
| <!-- dws-intent: doc.content.update -->Append, overwrite, or precisely edit blocks | | Unique text |
| Important content update requiring a recovery point | | Auto-save version, update and read back; check |
| Version operations | | Snapshot/List/Rollback. |
| <!-- dws-intent: doc.export.format -->Export to docx/markdown/pdf | | Format must be explicitly specified; switch to |
| <!-- dws-intent: doc.import.local_file -->Convert local file to online document | `dws doc +import --file <relative path> [--folder <ID>\ | --workspace <ID>] [--name <document name>]` |
| Cover/background | | After writing, |
| Browse templates | `dws doc +template-list [--source MY\ | PUBLIC] [--page-all]` |
| Search templates | | Source optional MY/PUBLIC; stop on zero hits, do not substitute unrelated templates; disambiguate multiple candidates. |
| Create from template | | Create only when a unique templateId exists; do not repeat list/search. |
| Create/view comments | | node/content required; use |
| <!-- dws-intent: doc.access.grant -->Add/adjust/remove collaborator permissions | | |
| <!-- dws-intent: doc.share.link_only -->Share link only without changing permissions | | Built-in name resolution; use aisearch only for ambiguity, do not pre-query people; use chat for ordinary private messages. |
| Share link with multiple people after granting permissions | | Use when only permission changes are needed ( |
| <!-- dws-intent: doc.media.insert -->Insert file/PPT/PDF as body attachment | | Body attachments go through Doc; |
nodeIdextension=dlinklinkSourceInfo.nodeId+fetchpartial_successpartial_successunknownretryablecompletehasMore+importsuccess/verified=truetaskId/nodeId/documentUrldoc +import --workspace <Wiki ID>wiki +move-to-drive+exportlocalPathsizeBytes>0ls/stat@file@relative path--content -..doc +update--command+fetch --detail with-ids--fields use_when,avoid_when,parameters,constraints,confirmation--allconfirmationuser_required--yes[[...]]| Trigger Condition | Reference |
|---|---|
| Low-frequency/no shortcut intent disambiguation | intent-guide.md / doc.md corresponding sections |
Pagination, | contracts.md |
| Complex JSONML, long texts, or precise local read/write | create / read / update |
| Advanced parameters for block/selection comments/media/cover/background | block / comment / media |
| Export/import failure recovery | export / import |
+create+fetch+update+export+import+fetch+list --folderdrive +listunknown flagunknown commanddws doc --help | grep/headREVISION_CONFLICTdoc_write_commit_unknowndingtalk-shareddingtalk-aisearchdingtalk-contactdingtalk-drivedrive +upload --workspacedoc +media-insertdoc +importdingtalk-drive +copy/+movedingtalk-wiki+import --workspace+move-to-drive.mddingtalk-miscaxlsabledingtalk-misc