jwt_create
Create HS256-signed JWT tokens for testing APIs, mocking authentication, and generating test tokens. Specify payload, secret, and expiration.
Instructions
[PRO — 3 trial uses left] Create a JWT token signed with HS256. Useful for testing APIs, mocking auth, and generating test tokens.
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": {
"payload": "<payload>"
},
"name": "jwt_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | No | Secret key for HS256 signing (default: 'secret') | |
| payload | Yes | JSON string for the JWT payload (e.g. {"sub":"1234","name":"Test"}) | |
| expiresIn | No | Expiration in seconds from now (default: 3600) |