get_token
Issue short-lived tokens for specified credentials to enable authenticated API calls. Requires a purpose for audit and returns token value, header usage, and expiry.
Instructions
为指定凭据签发(或复用缓存的)临时令牌供后续调用使用。必须在 purpose 中说明本次用途,便于审计统计。返回令牌值、携带方式(请求头)、有效期。令牌仅缓存在内存中,过期自动重新签发。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 凭据名称或 id | |
| purpose | Yes | 本次使用用途,如 '查询生产订单服务状态' | |
| refresh | No | true 时强制重新登录签发,忽略缓存 |