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.

Source facts

Repository
Achuan-2/siyuan-plugin-copilot
Last source activity
July 11, 2026 at 16:41
Detected SKILL.md language
English
Stars
162
Forks
35

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
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": "..." }) ``` ---
View on GitHub