> ## Documentation Index
> Fetch the complete documentation index at: https://oom-wg.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Scheme 关联

> 了解如何开发适配 ShiroSU Compat 的 Scheme 关联

ShiroSU Compat 会注册 `ssu` 的 `scheme` ，只需要通过 `ssu://...` 即可调用

如果没有传入或传入错误的内容，只会打开 ShiroSU Compat 的主页，支持的 `host` 如下:

## module

调用此 `host`，需要传入以下 `path` 之一:

### action

调用此 `path`，需要传入以下 `query`:

* `id`: 模块 ID

示例: `ssu://module/action?id=xxx`

调用后，会执行该模块的 `操作`，如果不存在该模块，则只会打开 ShiroSU Compat 的主页

### webui

调用此 `path`，需要传入以下 `query`:

* `id`: 模块 ID

示例: `ssu://module/webui?id=xxx`

调用后，会跳转该模块的 `WebUI`，如果不存在该模块，则只会打开 ShiroSU Compat 的主页

### install

调用此 `path`，需要传入以下 `query`:

* `name`: 模块名称，不传入则为 `未知`
* `url`: 模块下载链接

示例: `ssu://module/install?name=meow&url=https://meow.latestfile.zip`

调用后，会下载并安装该模块

<Tip>仅自动下载，安装需要手动确认</Tip>
