identity:
  name: get_tenant_access_token
  author: Doug Lea
  label:
    en_US: Get Tenant Access Token
    zh_Hans: 获取飞书自建应用的 tenant_access_token
description:
  human:
    en_US: Get tenant access token
    zh_Hans: |
      获取飞书自建应用的 tenant_access_token，响应体示例:
      {"code":0,"msg":"ok","tenant_access_token":"t-caecc734c2e3328a62489fe0648c4b98779515d3","expire":7200}
      tenant_access_token: 租户访问凭证;
      expire: tenant_access_token 的过期时间，单位为秒;
  llm: A tool for obtaining a tenant access token. The input parameters must include app_id and app_secret.
parameters:
  - name: app_id
    type: string
    required: true
    label:
      en_US: app_id
      zh_Hans: 应用唯一标识
    human_description:
      en_US: app_id is the unique identifier of the Lark Open Platform application
      zh_Hans: app_id 是飞书开放平台应用的唯一标识
    llm_description: app_id is the unique identifier of the Lark Open Platform application
    form: llm

  - name: app_secret
    type: secret-input
    required: true
    label:
      en_US: app_secret
      zh_Hans: 应用秘钥
    human_description:
      en_US: app_secret is the secret key of the application
      zh_Hans: app_secret 是应用的秘钥
    llm_description: app_secret is the secret key of the application
    form: llm
