Install
openclaw skills install alibabacloud-pds-multimodal-searchImplements exact filename search, fuzzy filename search, semantic file search, and image-based image search Triggers: "PDS drive file search", "PDS image search by image"
openclaw skills install alibabacloud-pds-multimodal-searchPlease read this entire skill document carefully
references/drive.mdreferences/upload-file.mdreferences/download-file.mdreferences/search-file.mdreferences/multianalysis-file.mdreferences/visual-similar-search.mdaliyun CLI command invocation must include:
--user-agent AlibabaCloud-Agent-Skills/alibabacloud-pds-multimodal-searchlist-my-group-drive, root_group_drive is the enterprise space and items are team spaces. Never substitute one for the other.root_group_drive is empty, do not fall back to a team space search.Apply the following rules before choosing a drive_id:
| User wording | Allowed drive source | Forbidden fallback |
|---|---|---|
| "企业空间" / "company space" / "enterprise space" | root_group_drive only | Any drive from items |
| "团队空间" / "某个团队空间" / "team space" | items only | root_group_drive |
| "个人空间" / "我的空间" / "personal space" | list-my-drives.items only | group drives |
| "网盘里" / "我的网盘" / no space specified | all relevant spaces | none |
Before continuing, perform a brief self-check:
drive_id come from the correct response field for that space type?If any answer is uncertain, do not guess.
Prerequisites: Requires Aliyun CLI >= 3.3.3
Verify CLI version:
aliyun version # requires >= 3.3.3If not installed or version too low, run
curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bashto update, or seereferences/cli-installation-guide.mdfor installation instructions.Verify PDS plugin version:
aliyun pds version # requires >= 0.1.4After installation, must enable auto plugin installation:
aliyun configure set --auto-plugin-install trueThen [MUST] run
aliyun plugin updateto ensure that any existing plugins on your local machine are always up-to-date.
At the start of the Core Workflow (before any CLI invocation):
[MUST] Enable AI-Mode — AI-mode is required for Agent Skill execution. Run the following commands before any CLI invocation:
aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-pds-multimodal-search"
[MUST] Disable AI-Mode at EVERY exit point — Before delivering the final response for ANY reason, always disable AI-mode first. This applies to ALL exit paths: workflow success, workflow failure, error/exception, user cancellation, session end, or any other scenario where no further CLI commands will be executed. AI-mode is only used for Agent Skill invocation scenarios and MUST NOT remain enabled after the skill stops running.
aliyun configure ai-mode disable
Prerequisites: Alibaba Cloud credentials must be configured
Security Rules:
- Forbidden to read, output, or print AK/SK values (e.g.,
echo $ALIBABA_CLOUD_ACCESS_KEY_IDis forbidden)- Forbidden to ask users to input AK/SK directly in conversation or command line
- Forbidden to use
aliyun configure setto set plaintext credentials- Only allowed to use
aliyun configure listto check credential statusCheck credential configuration:
aliyun configure listConfirm the output shows a valid profile (AK, STS, or OAuth identity).
If no valid configuration exists, stop first.
- Obtain credentials from Alibaba Cloud Console
- Configure credentials outside this session (run
aliyun configurein terminal or set environment variables)- Run
aliyun configure listto verify after configuration is complete
# Install Aliyun CLI (if not installed)
curl -fsSL --max-time 10 https://aliyuncli.alicdn.com/install.sh | bash
aliyun version # confirm >= 3.3.3
# Enable auto plugin installation
aliyun configure set --auto-plugin-install true
# Install Python dependencies (for multipart upload script)
pip3 install requests
Before executing any PDS operations, you must first configure domain_id, user_id, and authentication type -> read references/config.md
[MUST] CLI User-Agent — Every
aliyunCLI command invocation must include--user-agent AlibabaCloud-Agent-Skills/alibabacloud-pds-multimodal-searchExamples:
aliyun pds get-user --user-agent AlibabaCloud-Agent-Skills/alibabacloud-pds-multimodal-search aliyun pds list-my-drives --user-agent AlibabaCloud-Agent-Skills/alibabacloud-pds-multimodal-search aliyun pds upload-file --drive-id <id> --local-path <path> --user-agent AlibabaCloud-Agent-Skills/alibabacloud-pds-multimodal-search
| Reference Document | Path |
|---|---|
| CLI Installation Guide | references/cli-installation-guide.md |
| RAM Permission Policies | references/ram-policies.md |
references/search-file.md and strictly follow the documented process to re-execute file search.