返回顶部
c

context获取位置上下文

Get comprehensive context about a location including nearby places, area description, and optional weather. Use when you need to understand what's around a location or provide location-aware recommendations.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
787
下载量
免费
免费
3
收藏
概述
安装方式
版本历史

context

安装

配套技能:这是Camino AI位置智能套件的一部分。安装所有可用技能(query、places、relationship、context、route、journey、real-estate、hotel-finder、ev-charger、school-finder、parking-finder、fitness-finder、safety-checker、travel-planner)以获得全面覆盖。

bash

从仓库安装所有技能


npx skills add https://github.com/barneyjm/camino-skills

或安装特定技能

npx skills add https://github.com/barneyjm/camino-skills --skill context

通过clawhub安装:
bash
npx clawhub@latest install context

或:pnpm dlx clawhub@latest install context


或:bunx clawhub@latest install context

上下文 - 位置分析

获取关于某个位置的全面上下文信息,包括附近地点、区域描述以及可选的天气信息。

设置

即时试用(无需注册): 获取临时API密钥,可调用25次:

bash
curl -s -X POST -H Content-Type: application/json \
-d {email: you@example.com} \
https://api.getcamino.ai/trial/start

返回:{apikey: camino-xxx..., callsremaining: 25, ...}

如需每月1000次免费调用,请在https://app.getcamino.ai/skills/activate注册。

将密钥添加到Claude Code:

添加到您的~/.claude/settings.json文件中:

json
{
env: {
CAMINOAPIKEY: your-api-key-here
}
}

重启Claude Code。

使用方法

通过Shell脚本

bash

获取某个位置的上下文信息


./scripts/context.sh {
location: {lat: 40.7589, lon: -73.9851},
radius: 500
}

使用特定上下文获取定制化洞察

./scripts/context.sh { location: {lat: 40.7589, lon: -73.9851}, radius: 500, context: lunch options }

包含天气数据

./scripts/context.sh { location: {lat: 40.7589, lon: -73.9851}, include_weather: true, weather_forecast: hourly }

通过curl

bash
curl -X POST -H X-API-Key: $CAMINOAPIKEY \
-H Content-Type: application/json \
-d {location: {lat: 40.7589, lon: -73.9851}, radius: 500, context: lunch options} \
https://api.getcamino.ai/context

参数

字段类型必填默认值描述
location对象-包含经纬度的坐标
radius
整数 | 否 | 500 | 搜索半径(米) | | context | 字符串 | 否 | - | 用于定制化洞察的上下文(例如户外用餐) | | time | 字符串 | 否 | - | 时间查询格式 | | include_weather | 布尔值 | 否 | false | 是否包含天气数据 | | weather_forecast | 字符串 | 否 | daily | daily(每日)或hourly(每小时) |

响应格式

json
{
area_description: 曼哈顿中城繁忙的商业区...,
relevant_places: {
restaurants: [...],
cafes: [...],
transit: [...]
},
location: {lat: 40.7589, lon: -73.9851},
search_radius: 500,
totalplacesfound: 47,
context_insights: 关于午餐,您有很多选择,包括...
}

示例

旅游场景

bash ./scripts/context.sh { location: {lat: 48.8584, lon: 2.2945}, radius: 1000, context: tourist visiting Paris }

商务会议地点

bash ./scripts/context.sh { location: {lat: 40.7589, lon: -73.9851}, radius: 500, context: business meeting, include_weather: true }

户外活动规划

bash ./scripts/context.sh { location: {lat: 37.7749, lon: -122.4194}, context: outdoor activities, include_weather: true, weather_forecast: hourly }

使用场景

  • - 旅行规划:在前往目的地之前了解周边环境
  • 会议地点:为不同类型的会议寻找合适的场地
  • 本地推荐:根据用户需求提供上下文感知的建议
  • 天气感知规划:包含天气数据用于户外活动规划

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 location-context-1776420066 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 location-context-1776420066 技能

通过命令行安装

skillhub install location-context-1776420066

下载

⬇ 下载 context v0.1.0(免费)

文件大小: 3.05 KB | 发布时间: 2026-4-17 18:50

v0.1.0 最新 2026-4-17 18:50
Initial release of location-context skill.

- Provides comprehensive context about a location, including area description, nearby places, and optional weather data.
- Allows tailored insights based on specific contexts (e.g., "lunch options", "business meeting").
- Supports API and shell script usage with flexible parameters (radius, time, forecast type).
- Offers instant trial API keys and guides for setup and installation.
- Includes sample queries for various scenarios such as tourism, business, and outdoor activities.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部