with one click
http-request
// 发起 HTTP 网络请求,支持 GET、POST、PUT、DELETE、PATCH 方法。当用户需要调用 API、获取网页内容、发送数据到服务器时使用。
// 发起 HTTP 网络请求,支持 GET、POST、PUT、DELETE、PATCH 方法。当用户需要调用 API、获取网页内容、发送数据到服务器时使用。
查询指定城市未来几天(明天、后天等)的天气预报。当用户询问「明天」「后天」「未来几天」天气时使用;与 weather 互补,weather 仅提供实时天气。
查询城市天气信息,支持查询今天和明天的天气预报。当用户询问某个城市的天气、温度、湿度等信息时使用。
A simple calculator that can add, subtract, multiply, and divide numbers. Use when the user needs to perform basic arithmetic operations.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
文本处理工具。支持的操作(operation):uppercase(大写)、lowercase(小写)、reverse(反转)、trim(去空白)、count(统计)。参数:text(文本)、operation(操作类型)。
小红书图文内容创作助手。**必须传入 content**(含 title、body、hashtags、thumbnail),建议 generate_thumbnail=true。优先 Playwright HTML 截图生成封面,失败时回退 Pillow。
| name | http-request |
| description | 发起 HTTP 网络请求,支持 GET、POST、PUT、DELETE、PATCH 方法。当用户需要调用 API、获取网页内容、发送数据到服务器时使用。 |
| license | MIT |
| compatibility | Python 3.x,推荐 requests + html2text(无 html2text 时 HTML 退化为纯文本),需网络权限 |
| metadata | {"author":"skillLite","version":"1.0"} |
一个通用的 HTTP 网络请求技能,支持常见的 RESTful API 调用。
{
"url": "https://httpbin.org/get",
"method": "GET",
"params": {"name": "test"}
}
{
"url": "https://httpbin.org/post",
"method": "POST",
"headers": {"Content-Type": "application/json"},
"body": {"message": "hello world"}
}
{
"url": "https://api.open-meteo.com/v1/forecast",
"method": "GET",
"params": {
"latitude": 18.7883,
"longitude": 98.9853,
"daily": "temperature_2m_max,temperature_2m_min,weathercode",
"timezone": "Asia/Bangkok",
"forecast_days": 2
}
}
清迈坐标 18.7883,98.9853。返回 JSON 含 daily.time、temperature_2m_max/min、weathercode。
wttr.in 亦可用:https://wttr.in/Chiang_Mai?format=j1,skill 会自动用 curl UA 以获取 JSON。
{
"url": "https://en.wikipedia.org/api/rest_v1/page/summary/Chiang_Mai",
"method": "GET"
}
或 .../page/summary/Bangkok。返回 JSON 含 extract、description、title 等。
{
"url": "https://en.wikipedia.org/w/api.php",
"method": "GET",
"params": {"q": "Chiang Mai tourism"}
}
entry_point: scripts/main.py
language: python
network:
enabled: true
outbound:
- "*:80"
- "*:443"
block_private_ips: false
input_schema:
type: object
properties:
url:
type: string
description: 请求的完整 URL
method:
type: string
description: HTTP 请求方法
enum:
- GET
- POST
- PUT
- DELETE
- PATCH
default: GET
headers:
type: object
description: 自定义请求头
additionalProperties:
type: string
body:
type: object
description: 请求体数据,用于 POST/PUT/PATCH,将以 JSON 格式发送
params:
type: object
description: URL 查询参数
additionalProperties: true
timeout:
type: number
description: 请求超时时间(秒),默认 30 秒
default: 30
use_legacy_ssl:
type: boolean
description: 是否启用旧版 SSL 兼容(连接 cscse.edu.cn、lxgz.org.cn 等旧服务器时需 true)
default: true
extract_mode:
type: string
description: HTML 响应提取模式,markdown=转为 Markdown(默认),text=纯文本,raw=原始 HTML
enum:
- markdown
- text
- raw
default: markdown
required:
- url