Skip to main content

http-request

Send an HTTP request to a REST API and return the raw text response (JSON is kept as-is). action (HTTP method): get (default)/post/put/delete/patch. url (http/https), headers (object), body (string). Use this instead of web_fetch when you need POST, custom headers (e.g. Authorization), or raw JSON responses.

Quellinformationen

Repository
Achuan-2/siyuan-plugin-copilot
Letzte Quellaktivität
11. Juli 2026 um 16:41
Erkannte Sprache von SKILL.md
Englisch
Sterne
162
Forks
35

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
http_request
description
Send an HTTP request to a REST API and return the raw text response (JSON is kept as-is). action (HTTP method): get (default)/post/put/delete/patch. url (http/https), headers (object), body (string). Use this instead of web_fetch when you need POST, custom headers (e.g. Authorization), or raw JSON responses.
# http_request ## action: get ### 参数说明 | 参数名 | 类型 | 必填 | 描述 | 可选值 | | --- | --- | --- | --- | --- | | `url` | `string` | 否 | The request URL (must start with http:// or https://) | - | | `headers` | `object` | 否 | Optional request headers, e.g. {"Authorization":"Bearer ...\ | - | | `body` | `string` | 否 | Optional request body for post/put/patch. | - | ### 使用示例 ```javascript http_request({ "action": "get", "url": "...", "headers": "...", "body": "..." }) ``` --- ## action: post ### 参数说明 | 参数名 | 类型 | 必填 | 描述 | 可选值 | | --- | --- | --- | --- | --- | | `url` | `string` | 否 | The request URL (must start with http:// or https://) | - | | `headers` | `object` | 否 | Optional request headers, e.g. {"Authorization":"Bearer ...\ | - | | `body` | `string` | 否 | Optional request body for post/put/patch. | - | ### 使用示例 ```javascript http_request({ "action": "post", "url": "...", "headers": "...", "body": "..." }) ``` --- ## action: put ### 参数说明 | 参数名 | 类型 | 必填 | 描述 | 可选值 | | --- | --- | --- | --- | --- | | `url` | `string` | 否 | The request URL (must start with http:// or https://) | - | | `headers` | `object` | 否 | Optional request headers, e.g. {"Authorization":"Bearer ...\ | - | | `body` | `string` | 否 | Optional request body for post/put/patch. | - | ### 使用示例 ```javascript http_request({ "action": "put", "url": "...", "headers": "...", "body": "..." }) ``` --- ## action: delete ### 参数说明 | 参数名 | 类型 | 必填 | 描述 | 可选值 | | --- | --- | --- | --- | --- | | `url` | `string` | 否 | The request URL (must start with http:// or https://) | - | | `headers` | `object` | 否 | Optional request headers, e.g. {"Authorization":"Bearer ...\ | - | | `body` | `string` | 否 | Optional request body for post/put/patch. | - | ### 使用示例 ```javascript http_request({ "action": "delete", "url": "...", "headers": "...", "body": "..." }) ``` --- ## action: patch ### 参数说明 | 参数名 | 类型 | 必填 | 描述 | 可选值 | | --- | --- | --- | --- | --- | | `url` | `string` | 否 | The request URL (must start with http:// or https://) | - | | `headers` | `object` | 否 | Optional request headers, e.g. {"Authorization":"Bearer ...\ | - | | `body` | `string` | 否 | Optional request body for post/put/patch. | - | ### 使用示例 ```javascript http_request({ "action": "patch", "url": "...", "headers": "...", "body": "..." }) ``` ---
Auf GitHub ansehen