Skip to content

Commit d8608aa

Browse files
Bill Leoutsakoscursoragent
authored andcommitted
chore(tiktok): drop unused avatar_url_100 from default user fields
After removing the avatar string outputs, avatar_url_100 was still requested from TikTok's user info endpoint but never surfaced anywhere. Removed it from the default field list and the field descriptions, and noted that avatar_url/avatar_large_url feed the avatarFile output. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 71f3fac commit d8608aa

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

apps/docs/content/docs/en/integrations/tiktok.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Get the authenticated TikTok user profile information including display name, av
2626

2727
| Parameter | Type | Required | Description |
2828
| --------- | ---- | -------- | ----------- |
29-
| `fields` | string | No | Comma-separated list of fields to return. Available: open_id, union_id, avatar_url, avatar_url_100, avatar_large_url, display_name, bio_description, profile_deep_link, is_verified, username, follower_count, following_count, likes_count, video_count |
29+
| `fields` | string | No | Comma-separated list of fields to return. Available: open_id, union_id, avatar_url, avatar_large_url, display_name, bio_description, profile_deep_link, is_verified, username, follower_count, following_count, likes_count, video_count. Include avatar_url and avatar_large_url to receive the avatarFile output. |
3030

3131
#### Output
3232

apps/sim/blocks/blocks/tiktok.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const TikTokBlock: BlockConfig<TikTokResponse> = {
7474
wandConfig: {
7575
enabled: true,
7676
prompt:
77-
'Generate a comma-separated list of TikTok user info fields based on the user request, choosing only from: open_id, union_id, avatar_url, avatar_url_100, avatar_large_url, display_name, bio_description, profile_deep_link, is_verified, username, follower_count, following_count, likes_count, video_count. Return ONLY the comma-separated field names - no explanations, no extra text.',
77+
'Generate a comma-separated list of TikTok user info fields based on the user request, choosing only from: open_id, union_id, avatar_url, avatar_large_url, display_name, bio_description, profile_deep_link, is_verified, username, follower_count, following_count, likes_count, video_count. Return ONLY the comma-separated field names - no explanations, no extra text.',
7878
placeholder: 'Describe which profile fields you need',
7979
},
8080
},

apps/sim/tools/tiktok/get_user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const tiktokGetUserTool: ToolConfig<TikTokGetUserParams, TikTokGetUserRes
2828
visibility: 'user-or-llm',
2929
default: TIKTOK_USER_FIELDS,
3030
description:
31-
'Comma-separated list of fields to return. Available: open_id, union_id, avatar_url, avatar_url_100, avatar_large_url, display_name, bio_description, profile_deep_link, is_verified, username, follower_count, following_count, likes_count, video_count',
31+
'Comma-separated list of fields to return. Available: open_id, union_id, avatar_url, avatar_large_url, display_name, bio_description, profile_deep_link, is_verified, username, follower_count, following_count, likes_count, video_count. Include avatar_url and avatar_large_url to receive the avatarFile output.',
3232
},
3333
},
3434

apps/sim/tools/tiktok/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import type { TikTokVideo } from '@/tools/tiktok/types'
33
/**
44
* Default fields requested from TikTok's `/v2/user/info/` endpoint, covering the
55
* `user.info.basic`, `user.info.profile`, and `user.info.stats` scopes.
6+
* `avatar_url` and `avatar_large_url` feed the file-typed `avatarFile` output.
67
*/
78
export const TIKTOK_USER_FIELDS =
8-
'open_id,union_id,avatar_url,avatar_url_100,avatar_large_url,display_name,bio_description,profile_deep_link,is_verified,username,follower_count,following_count,likes_count,video_count'
9+
'open_id,union_id,avatar_url,avatar_large_url,display_name,bio_description,profile_deep_link,is_verified,username,follower_count,following_count,likes_count,video_count'
910

1011
/**
1112
* Fields requested from TikTok's `/v2/video/list/` and `/v2/video/query/` endpoints.

0 commit comments

Comments
 (0)