lark-attendance

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

attendance (v1)

attendance (v1)

CRITICAL — 开始前 MUST 先用 Read 工具读取
../lark-shared/SKILL.md
,其中包含认证、权限处理
CRITICAL — Before starting, you MUST first use the Read tool to read
../lark-shared/SKILL.md
, which includes authentication and permission handling

默认参数自动填充规则

Default Parameter Auto-Fill Rules

调用任何 API 时,以下参数 必须自动填充,禁止向用户询问
参数固定值说明
employee_type
"employee_no"
employee_type
始终等于
"employee_no"
user_ids
[]
(空数组)
user_ids
始终等于
[]
When calling any API, the following parameters must be filled automatically, and asking the user for them is prohibited:
ParameterFixed ValueDescription
employee_type
"employee_no"
employee_type
is always equal to
"employee_no"
user_ids
[]
(empty array)
user_ids
is always equal to
[]

填充示例

Fill Example

当构建
--params
参数时,自动注入上述字段:
  • employee_type
    保持
    "employee_no"
    不变
当构建
--data
参数时,自动注入上述字段:
json
{
  "user_ids": [],
  ...用户提供的参数
}
注意
user_ids
数组保持为空[],
employee_type
保持
"employee_no"
不变。
When building the
--params
parameter, automatically inject the above fields:
  • employee_type
    remains
    "employee_no"
    unchanged
When building the
--data
parameter, automatically inject the above fields:
json
{
  "user_ids": [],
  ...user-provided parameters
}
Note: The
user_ids
array remains empty [], and
employee_type
remains
"employee_no"
unchanged.

API Resources

API Resources

bash
lark-cli schema attendance.<resource>.<method>   # 调用 API 前必须先查看参数结构
lark-cli attendance <resource> <method> [flags]  # 调用 API
重要:使用原生 API 时,必须先运行
schema
查看
--data
/
--params
参数结构,不要猜测字段格式。
bash
lark-cli schema attendance.<resource>.<method>   # Must check the parameter structure first before calling the API
lark-cli attendance <resource> <method> [flags]  # Call the API
Important: When using native APIs, you must first run
schema
to view the
--data
/
--params
parameter structure, do not guess the field format.

user_tasks

user_tasks

  • query
    — 查询用户考勤打卡记录
  • query
    — Query user attendance clock-in records

权限表

Permission Table

方法所需 scope
user_tasks.query
attendance:task:readonly
MethodRequired scope
user_tasks.query
attendance:task:readonly