darken_palette
把一套浅色配色推导成深色版本:按固定规则重排明度与饱和度,并返回每对颜色的实测对比度。可用 slug 取库里配色,也可直接传 roles。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "darken_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | 配色 slug,如 jing-hu-lan | |
| roles | No | 直接传角色色值,如 {"bg":"#faf8f2","text":"#2b2b2b","primary":"#1989ea"};与 slug 二选一 | |
| platform | No |