update_option
Updates JMComic configuration and saves changes to file, enabling nested adjustments to auth, client, download, directory rules, and plugins.
Instructions
更新 JMComic 配置并保存到文件。
重要提示:此工具仅执行有限的验证。 在调用此工具之前,建议先查看以下资源了解 JmOption 语法:
jmcomic://option/schema: 参数类型和结构约束。jmcomic://option/reference: 字段详细说明和示例。
参数: option_updates: 要合并的配置更新字典。 支持对 auth、client、download、dir_rule、plugins 等进行嵌套更新。
返回: 包含文件路径的成功消息,或错误消息。
示例: option_updates = { "client": {"impl": "api"}, "download": {"threading": {"image": 50}} }
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"option_updates": "<option_updates>"
},
"name": "update_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| option_updates | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |