- name
SKILL.md
技能檔案保留在發布者的儲存庫中。
在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add NVIDIA/SkillEvaluator --skill api-caller -a cursor -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add NVIDIA/SkillEvaluator --skill api-caller -a claude-code -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add NVIDIA/SkillEvaluator --skill api-caller -a codex -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add NVIDIA/SkillEvaluator --skill api-caller -a grok -y在 Grok Bot 聊天中傳送複製的訊息。Bot 會從 GitHub 取得這個 SKILL.md,並加入你所有 Bot 共用的技能中。
Install this skill: https://github.com/NVIDIA/SkillEvaluator/tree/HEAD/src/skillevaluator/tier3/reference_skills/api-caller來自發布者
Generic skill to call any REST API dynamically. Can work with OpenAPI specs or direct endpoint calls.
scripts/parse_openapi.py first when the user gives an OpenAPI or Swagger spec.scripts/call_api.py for the actual HTTP request.Use this first when given an API spec URL. Parses an OpenAPI/Swagger spec and returns available operations with parameters. Run commands from the skill base directory; script paths are relative to this SKILL.md file.
Usage:
python scripts/parse_openapi.py <spec_url> [filter_path]
Arguments:
<spec_url> - URL to the OpenAPI spec (required)[filter_path] - Optional: filter operations by path substringExample:
python scripts/parse_openapi.py "https://api.example.com/openapi.json"
Returns: API name, base URL, and list of operations with their parameters, request body schema, etc.
Call a REST API endpoint directly or using an OpenAPI spec. Run commands from the skill base directory; script paths are relative to this SKILL.md file.
Usage:
python scripts/call_api.py --url <endpoint_url> [options]
Arguments:
--url <endpoint_url> - Direct API endpoint URL (required if no --spec)--method <GET|POST|PUT|DELETE> - HTTP method (default: GET)--data <json_string> - Request body as JSON string--headers <json_string> - Custom headers as JSON string--spec <openapi_url> - OpenAPI spec URL (optional, for discovery)--operation <operation_id> - Operation ID from OpenAPI spec--params <json_string> - Path/query parameters as JSONpython scripts/call_api.py --url "https://api.example.com/data" --method GET
# Call API with query parameters appended to URL
python scripts/call_api.py --url "https://en.wikipedia.org/w/api.php" --params '{"action": "query", "titles": "NVIDIA", "format": "json"}'
# Call API with authentication
python scripts/call_api.py --url "https://api.example.com/data" --headers '{"Authorization": "Bearer TOKEN"}'
# Create a resource
python scripts/call_api.py --url "https://api.example.com/items" --method POST --data '{"name": "test", "value": 123}'
# Discover and call an endpoint from OpenAPI spec
python scripts/call_api.py --spec "https://api.example.com/openapi.json" --operation "getItems" --params '{"param": "value"}'
--headerscode-generator skill instead?_limit=N, ?limit=N, ?per_page=N. If unsupported, fetch all and filter with code-generatorWhen given an OpenAPI spec URL, follow this workflow:
Parse the spec first with python scripts/parse_openapi.py:
python scripts/parse_openapi.py "<spec_url>"
Review operations - Look at the returned operations, their paths, methods, and parameters
Call the API with python scripts/call_api.py using the discovered endpoint and parameters
code-generator)Call any REST API dynamically. Make GET, POST, PUT, DELETE requests to any endpoint with custom headers and JSON body.
---name: api-callerdescription: Call any REST API dynamically. Make GET, POST, PUT, DELETE requests to any endpoint with custom headers and…---# src/skillevaluator/tier3/reference_skills/api-caller/SKILL.md常見問題
從發布者下載 src/skillevaluator/tier3/reference_skills/api-caller/SKILL.md,或複製路徑後開啟儲存庫。PlugMCP 只收錄這項技能,不代管檔案。
發布者將它存放在 https://github.com/NVIDIA/SkillEvaluator。
Claude、Cursor、Codex 和 Grok Build 可以讀取你從發布者儲存庫加入的 SKILL.md。在聊天中傳送技能的 GitHub 資料夾連結,Grok Bot 就會安裝它。