Raw Request
raw_requestInvoke fnOS system business API endpoints directly as a privileged fallback when no dedicated tool exists; supply the endpoint and optional JSON body.
Instructions
调用系统业务原始 API(兜底,特权入口)。
trim-cli 的命令格式是 raw <REQ> [--json <body>] [--yes]——没有
method 位置参数,GET/POST 由端点自身决定。非审计白名单里的端点
必须带 --yes,这里统一加,所以调用前请自己确认端点安全性。
例:raw_request("appcgi.network.ssh.status") 返回 SSH 开关状态。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON 请求体(需要时传) | |
| host | No | NAS 主机地址(IP 或域名) | |
| port | No | NAS 端口,如 5667(HTTPS)/5666(HTTP)/443 | |
| scheme | No | 传输协议 | |
| profile | No | 独立 session profile 名称,默认使用 default | |
| request | Yes | 系统业务原始请求端点,如 appcgi.network.ssh.status |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |