okr-native
Native Feishu OKR management: query OKR periods, user OKRs, and batch retrieve OKRs.
Invocation
Invoke through the action parameter of the channel tool:
| Action |
Description |
list_okr_periods |
List OKR periods |
list_user_okrs |
Query a user's OKRs |
batch_get_okrs |
Batch retrieve OKR details |
Parameters
list_okr_periods
| Parameter |
Type |
Required |
Description |
| page_size |
integer |
No |
Number per page (default 20) |
| page_token |
string |
No |
Pagination token |
list_user_okrs
| Parameter |
Type |
Required |
Description |
| user_id |
string |
No |
User open_id.When omitted, the current sender's open_id is automatically used, so there is no need to provide it when querying "My OKR". It only needs to be specified when querying someone else's OKR. |
| period_id |
string |
No |
OKR period ID |
batch_get_okrs
| Parameter |
Type |
Required |
Description |
| okr_ids |
array |
Yes |
OKR ID list |
Example
查看我的 OKR(自动使用当前用户)
-> channel(action="list_user_okrs")
查看当前 OKR 周期
-> channel(action="list_okr_periods")
查看某人的 OKR(需指定 user_id)
-> channel(action="list_user_okrs", user_id="ou_xxx")
批量获取 OKR
-> channel(action="batch_get_okrs", okr_ids=["okr_1", "okr_2"])
Automatic execution principles
- Automatic user_id resolution: When omitted, it is automatically obtained from the current sender's open_id; do not ask the user.
- Automatic period_id inference: When omitted, query the currently ongoing period. First call
list_okr_periods to get the latest period ID, then automatically pass it to list_user_okrs。
- Zero-parameter invocation: When the user says "view my OKR", directly call
channel(action="list_user_okrs"), without requiring any parameters.
- No interactive menus: Do not provide [1] [2] [3] options for the user to choose from; directly perform the most reasonable operation.
- Chained automatic execution: After obtaining the OKR list, if the user wants to view details, automatically extract okr_ids and call
batch_get_okrs, without a second confirmation.
Security level
- All operations: L1 read-only, no approval required