vehicleToken####accessToken方式 1:绝对路径(推荐 Agent 使用)
bash
# 假设技能安装在 ~/.openclaw/workspace/skills/carkey
~/.openclaw/workspace/skills/carkey/scripts/vehicle-query.sh
~/.openclaw/workspace/skills/carkey/scripts/vehicle-query.sh position
~/.openclaw/workspace/skills/carkey/scripts/vehicle-query.sh condition
方式 2:相对路径(用户手动执行)
bash
cd carkey
./scripts/vehicle-query.sh
./scripts/vehicle-query.sh position
./scripts/vehicle-query.sh condition
格式: vehicleToken####accessToken(4 个 # 分隔)
首次使用会提示输入,自动缓存。
系统缓存路径Linux/macOS~/.carkey_cache.jsonWindows%USERPROFILE%/.carkey_cache.json
字段值含义power0=熄火, 1=ACC, 2=ONgear1=P, 2=N, 3=D, 4=R, 5=Sdoor/window/trunk0=关闭, 1=开启lock0=解锁, 1=上锁
场景处理无缓存引导用户提供 tokenToken 过期提示重新认证,删除旧缓存请求失败自动重试 2 次,30 秒超时缺少依赖提示安装 curl/jq
系统依赖安装Linux (Ubuntu/Debian)sudo apt-get install curl jqLinux (CentOS/RHEL)sudo yum install curl jqmacOSbrew install curl jqWindows (Git Bash)已包含Windows (WSL)wsl sudo apt-get install curl jq
text
carkey/
├── SKILL.md # 本文档
├── README.md # 详细说明
├── _meta.json # 元数据
└── scripts/
└── vehicle-query.sh # 查询脚本(跨平台)