设置头像 / 主页背景图
noy_set_profile_imageUploads a local image and sets it as your avatar or profile background, replacing the current image and returning the old URL for rollback.
Instructions
上传本地图片并设为头像或主页背景图(服务端会把新文件直接写进资料,没有单独的「保存」接口)。 ⚠️ 会覆盖当前头像/背景图,旧文件不会自动删除;工具会返回旧地址,方便你回滚。 头像与背景图走不同的图床端点(upload_avatar / upload_bg),限制比发帖图片更严(过大会报 size)。
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": {
"kind": "<kind>",
"path": "<path>"
},
"name": "noy_set_profile_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | avatar = 头像,bg = 主页背景图 | |
| path | Yes | 本地图片路径(jpg / png / webp / gif) | |
| adult | No | 是否请求成人向内容(allow-adult 请求头)。不传则用环境变量 NOY_ALLOW_ADULT,默认 false。注意 /api/home 的服务端默认值是 true(不带就是 R18),本项目会显式传 false。 |