fix(amazon-shopping): harden agent invocation
This commit is contained in:
@@ -14,25 +14,26 @@ Run from the installed skill:
|
||||
|
||||
```bash
|
||||
cd ~/.openclaw/workspace/skills/amazon-shopping
|
||||
scripts/search-products "USB-C charger under $30" --limit 10 --json
|
||||
scripts/search-products "100w led bulbs that cost less than $4 each and have over 200 reviews with a review score of more than 4.5 stars" --limit 5 --markdown
|
||||
scripts/search-products "USB-C cable with over 1000 reviews and rating over 4 stars" --limit 3 --json --skip-details
|
||||
scripts/search-products 'USB-C charger under $30' --limit 10 --json
|
||||
scripts/search-products '100w led bulbs that cost less than $4 each and have over 200 reviews with a review score of more than 4.5 stars' --limit 5 --markdown
|
||||
scripts/search-products 'USB-C cable with over 1000 reviews and rating over 4 stars' --limit 3 --json --skip-details
|
||||
```
|
||||
|
||||
Use `--dry-run` to parse a request and show planned filters without navigating to Amazon:
|
||||
|
||||
```bash
|
||||
scripts/search-products "USB-C charger under $30" --dry-run --json
|
||||
scripts/search-products 'USB-C charger under $30' --dry-run --json
|
||||
```
|
||||
|
||||
Use single quotes when a request contains dollar amounts so the shell does not expand `$4`. `--max N` is accepted as a compatibility alias for `--limit N`.
|
||||
|
||||
## Dependency
|
||||
|
||||
This skill depends on the workspace `web-automation` skill and its CloakBrowser runtime.
|
||||
|
||||
```bash
|
||||
openclaw skills info web-automation
|
||||
cd ~/.openclaw/workspace/skills/web-automation/scripts
|
||||
node check-install.js
|
||||
node "$HOME/.openclaw/workspace/skills/web-automation/scripts/check-install.js"
|
||||
```
|
||||
|
||||
Setup or update the active `amazon-shopping` helper:
|
||||
@@ -77,5 +78,5 @@ This skill is for operator-directed product research, not purchasing automation.
|
||||
|
||||
```bash
|
||||
cd ~/.openclaw/workspace/skills/amazon-shopping
|
||||
scripts/search-products "100w led bulbs that cost less than $4 each and have over 200 reviews with a review score of more than 4.5 stars" --limit 5 --json
|
||||
scripts/search-products '100w led bulbs that cost less than $4 each and have over 200 reviews with a review score of more than 4.5 stars' --limit 5 --json
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user