Login
loginInitiates OAuth 2.0 + PKCE authentication for fnOS NAS. Returns an authorization URL for browser-based authorization and code retrieval, eliminating the need to share NAS credentials.
Instructions
[交互式] 发起 OAuth 2.0 + PKCE 登录。
返回授权 URL。用户需在浏览器打开该 URL,登录 fnOS 并确认授权, 然后把页面显示的一次性 code 用 submit_auth_code 工具提交。 不要向用户索取 NAS 账号密码。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | NAS 主机地址(IP 或域名) | |
| port | No | NAS 端口,如 5667(HTTPS)/5666(HTTP)/443 | |
| scheme | No | 传输协议 | |
| profile | No | 独立 session profile 名称,默认使用 default | |
| tls_insecure | No | 允许 HTTPS 自签证书(跳过证书校验) | |
| allow_insecure_http | No | 允许远程明文 HTTP(危险,仅在受信任网络使用) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |