返回顶部
g

get-my-ip获取本机IP

Get the machine's current public IP address by calling `curl ifconfig.me`. Use when the user asks for their IP address, public IP, external IP, or explicitly wants to use ifconfig.me.

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

get-my-ip

技能名称: get-my-ip
详细描述:

获取我的IP

当用户想要获取当前机器在公共互联网上可见的IP地址时,使用此技能。

此技能使用:

bash
curl -fsSL ifconfig.me

结果

返回来自 ifconfig.me 的当前公网IP地址。

保持回答简洁。默认情况下,除非用户要求更多详细信息,否则仅返回IP地址。

工作流程

1. 仅在必要时澄清含义

ifconfig.me 返回的是公共出站IP,而非本地局域网IP。

如果用户说本地IP但同时要求使用 ifconfig.me,请遵循请求,并在适当时说明结果是公网IP。

2. 运行命令

使用:

bash
curl -fsSL ifconfig.me

除非用户要求使用备用服务,否则不要替换为其他服务。

3. 返回结果

如果成功:

  • - 直接返回IP地址

如果失败:

  • - 说明无法获取公网IP
  • 在可能的情况下包含简要原因,例如缺少 curl、网络故障或服务不可用

范围边界

此技能仅用于通过 ifconfig.me 获取公网IP。

不适用于:

  • - 查找本地局域网IP
  • 诊断网络路由问题
  • 检查多个网络接口
  • 执行地理位置查询

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 get-my-ip-1776076631 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 get-my-ip-1776076631 技能

通过命令行安装

skillhub install get-my-ip-1776076631

下载

⬇ 下载 get-my-ip v0.1.0(免费)

文件大小: 1.33 KB | 发布时间: 2026-4-14 10:43

v0.1.0 最新 2026-4-14 10:43
Initial public release of the "get-my-ip" skill.

- Provides the machine's current public IP address using curl with ifconfig.me.
- Responds concisely with only the public IP by default.
- Alerts the user if curl is missing or the network/service is unavailable.
- Designed only for checking public IP via ifconfig.me; does not handle LAN IPs or advanced network diagnostics.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部