ruyi_set_extra_headers
Set extra HTTP headers for all subsequent requests to inject authentication tokens, custom user agents, or other necessary values.
Instructions
为所有后续请求附加额外的 HTTP Headers。用于注入认证 token、自定义 UA 等。
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": {
"headers": "<headers>"
},
"name": "ruyi_set_extra_headers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| headers | Yes | Key-value 键值对,如 {"X-Token": "abc123", "X-Device-Id": "device1"} | |
| pageIdx | No |