jwt_decode
Decode a JWT without verifying it, parse the header and payload, and check whether the token has expired; supply a secret to also verify HMAC signatures (HS256/384/512).
Instructions
解码 JWT(不验签),解析 header 与 payload 并判断是否过期;提供 secret 时用 HMAC(HS256/384/512)验签。
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": {
"token": "<token>"
},
"name": "jwt_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | JWT 字符串 | |
| secret | No | HMAC 密钥,提供则同时验签 |