| Resolve the unique knowledge base by name | +space-list --type <orgWikiSpace|myWikiSpace> --limit 50 --page-all
then exact-match the name | Clarify the organization/personal scope first; the response requestedType must equal the requested scope; take workspaceId only when and exactly one same-name item exists in the full result |
| Search or list knowledge bases | +space-search --query <keyword>
/ +space-list [--type orgWikiSpace|myWikiSpace]
| Add when the user wants all results; personal knowledge bases require explicit semantics |
| Discover DingTalk Drive storage space for Drive | dws wiki space list --type <orgSpace|mySpace> --format json
| Managed read-only prerequisite; switch back to Drive after receiving spaceId/rootFolderId, without entering Wiki node/member routes |
| View details for a known workspace | dws wiki +space-get --workspace <ID or URL>
| Do not search again when the ID is known |
| Create or delete knowledge base | +space-create --name <name>
/ +delete-space --workspace <ID>
| Creation reads back and verifies space type; assert type only when . Deleting an entire space is high-risk |
| Browse or search nodes within the library | +node-list --workspace <ID> [--folder <ID>]
/ +node-search --workspace <ID> --query <keyword>
| Directory listing and keyword search are separate; add for a complete list or complete search results |
| View node metadata | dws wiki +node-get --node <ID or URL>
| Switch to Doc for content read/write afterwards |
| Create a node in a known workspace | +node-create --workspace <ID> --name <name> [--type <type>]
| Supports adoc/axls/able/appt/adraw/amind/folder; verify ID, workspace, name, type, and explicit parent folder after creation |
| Create an empty document when only the knowledge base name is known | First resolve uniquely via full , then +node-create --workspace <ID> --name <title> --type adoc
| Do not use single-page to guess the space; content goes through Doc separately |
| Create a document from a local file in a new knowledge base then move it to "My Documents" | → doc +import --file <relative path> --workspace <new workspaceId>
→ +move-to-drive --workspace <new workspaceId> --node <imported nodeId>
| Must actually import the document into the new knowledge base before moving out; do not query first, and do not use in the personal domain then fake this flow with |
| Copy, move into knowledge base, or move a Wiki online node out to "My Documents" | / / | "Wiki node → My Documents" always uses ; pass as a pre-write ownership assertion when the source workspace is known; do not substitute with mySpace/rootFolderId + |
| Put standalone common attachments on the knowledge base home page | dws drive upload --file <local file> --workspace <ID> --format json
| No ; add for subdirectories. Attachments within content switch to Doc media; converting to online documents switches to Doc import |
| Delete a node in the library | +node-delete --workspace <ID> --node <ID>
| Verify ownership and confirm before deletion |
| List, add, modify, or remove knowledge base members | / / / | Writes accept 1-30 users; adding/updating must specify a role, removing does not pass a role; use native member for multiple types, per-member roles, or notifications |
| View knowledge base activity feeds | +feed-list --workspace <ID> [--exclude-file]
| Add for all activity; compare the two result sets only when the user explicitly asks to verify filter effects, and the unfiltered results must actually include that file event |