fix(amazon-shopping): harden agent invocation
This commit is contained in:
@@ -13,8 +13,7 @@ Verify the browser dependency before live use:
|
||||
|
||||
```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"
|
||||
```
|
||||
|
||||
## Search Products
|
||||
@@ -22,10 +21,11 @@ node check-install.js
|
||||
Run the helper from the installed skill directory:
|
||||
|
||||
```bash
|
||||
cd ~/.openclaw/workspace/skills/amazon-shopping
|
||||
scripts/search-products "<user request>" --json
|
||||
"$HOME/.openclaw/workspace/skills/amazon-shopping/scripts/search-products" '<user request>' --json
|
||||
```
|
||||
|
||||
Use single quotes around product requests that contain dollar amounts so the shell does not expand `$4` or similar text. Use `--limit N`; `--max N` is accepted as a compatibility alias. If your execution tool supports a timeout option, set it to at least 600 seconds for live runs with detail enrichment. Use `--skip-details` only for a quick preview or when the user does not need specifications and delivery details.
|
||||
|
||||
Default to at most 15 products unless the user asks for a different count. For requested counts above 30, ask before continuing or split the request into batches. Always include source URLs, report missing fields explicitly, and do not claim review histogram data unless it was visible and extracted.
|
||||
|
||||
## Guardrails
|
||||
|
||||
Reference in New Issue
Block a user