@superagnt/x-twitter-data 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +106 -105
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7,7 +7,8 @@ import { homedir as _homedir } from 'node:os'
|
|
|
7
7
|
import { join as _join } from 'node:path'
|
|
8
8
|
import { existsSync as _existsSync, readFileSync as _readFileSync } from 'node:fs'
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// SUPERAGNT_API_URL overrides the API origin (QA/staging); customers never set it.
|
|
11
|
+
const BASE_URL = (process.env.SUPERAGNT_API_URL || 'https://api.superagnt.com') + '/v1/data/x'
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
// ── Auth Module (inlined) ────────────────────────────────────────────────────
|
|
@@ -95,7 +96,7 @@ export default function register(api) {
|
|
|
95
96
|
api.registerTool({
|
|
96
97
|
name: 'superagnt_x_user_medias_continuation_get',
|
|
97
98
|
description: "Continuation User's Media",
|
|
98
|
-
|
|
99
|
+
parameters: {
|
|
99
100
|
"type": "object",
|
|
100
101
|
"properties": {
|
|
101
102
|
"limit": {
|
|
@@ -116,7 +117,7 @@ export default function register(api) {
|
|
|
116
117
|
"user_id"
|
|
117
118
|
]
|
|
118
119
|
},
|
|
119
|
-
execute: async (input) => {
|
|
120
|
+
execute: async (_toolCallId, input) => {
|
|
120
121
|
const key = ensureApiKey()
|
|
121
122
|
const params = parseToolInput(input)
|
|
122
123
|
return callSuperagnt(key, 'GET', '/user/medias/continuation', params)
|
|
@@ -126,7 +127,7 @@ export default function register(api) {
|
|
|
126
127
|
api.registerTool({
|
|
127
128
|
name: 'superagnt_x_user_medias_continuation_post',
|
|
128
129
|
description: "Continuation User's Media",
|
|
129
|
-
|
|
130
|
+
parameters: {
|
|
130
131
|
"type": "object",
|
|
131
132
|
"properties": {
|
|
132
133
|
"user_id": {
|
|
@@ -143,7 +144,7 @@ export default function register(api) {
|
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
},
|
|
146
|
-
execute: async (input) => {
|
|
147
|
+
execute: async (_toolCallId, input) => {
|
|
147
148
|
const key = ensureApiKey()
|
|
148
149
|
const params = parseToolInput(input)
|
|
149
150
|
return callSuperagnt(key, 'POST', '/user/medias/continuation', undefined, params)
|
|
@@ -153,7 +154,7 @@ export default function register(api) {
|
|
|
153
154
|
api.registerTool({
|
|
154
155
|
name: 'superagnt_x_User_s_Media_get__user_medias',
|
|
155
156
|
description: "User's Media",
|
|
156
|
-
|
|
157
|
+
parameters: {
|
|
157
158
|
"type": "object",
|
|
158
159
|
"properties": {
|
|
159
160
|
"limit": {
|
|
@@ -169,7 +170,7 @@ export default function register(api) {
|
|
|
169
170
|
"user_id"
|
|
170
171
|
]
|
|
171
172
|
},
|
|
172
|
-
execute: async (input) => {
|
|
173
|
+
execute: async (_toolCallId, input) => {
|
|
173
174
|
const key = ensureApiKey()
|
|
174
175
|
const params = parseToolInput(input)
|
|
175
176
|
return callSuperagnt(key, 'GET', '/user/medias', params)
|
|
@@ -179,7 +180,7 @@ export default function register(api) {
|
|
|
179
180
|
api.registerTool({
|
|
180
181
|
name: 'superagnt_x_User_s_Media_post__user_medias',
|
|
181
182
|
description: "User's Media",
|
|
182
|
-
|
|
183
|
+
parameters: {
|
|
183
184
|
"type": "object",
|
|
184
185
|
"properties": {
|
|
185
186
|
"user_id": {
|
|
@@ -192,7 +193,7 @@ export default function register(api) {
|
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
},
|
|
195
|
-
execute: async (input) => {
|
|
196
|
+
execute: async (_toolCallId, input) => {
|
|
196
197
|
const key = ensureApiKey()
|
|
197
198
|
const params = parseToolInput(input)
|
|
198
199
|
return callSuperagnt(key, 'POST', '/user/medias', undefined, params)
|
|
@@ -202,7 +203,7 @@ export default function register(api) {
|
|
|
202
203
|
api.registerTool({
|
|
203
204
|
name: 'superagnt_x_user_likes_continuation_get',
|
|
204
205
|
description: "Continuation User's Likes",
|
|
205
|
-
|
|
206
|
+
parameters: {
|
|
206
207
|
"type": "object",
|
|
207
208
|
"properties": {
|
|
208
209
|
"continuation_token": {
|
|
@@ -223,7 +224,7 @@ export default function register(api) {
|
|
|
223
224
|
"user_id"
|
|
224
225
|
]
|
|
225
226
|
},
|
|
226
|
-
execute: async (input) => {
|
|
227
|
+
execute: async (_toolCallId, input) => {
|
|
227
228
|
const key = ensureApiKey()
|
|
228
229
|
const params = parseToolInput(input)
|
|
229
230
|
return callSuperagnt(key, 'GET', '/user/likes/continuation', params)
|
|
@@ -233,7 +234,7 @@ export default function register(api) {
|
|
|
233
234
|
api.registerTool({
|
|
234
235
|
name: 'superagnt_x_user_likes_continuation_post',
|
|
235
236
|
description: "Continuation User's Likes",
|
|
236
|
-
|
|
237
|
+
parameters: {
|
|
237
238
|
"type": "object",
|
|
238
239
|
"properties": {
|
|
239
240
|
"user_id": {
|
|
@@ -250,7 +251,7 @@ export default function register(api) {
|
|
|
250
251
|
}
|
|
251
252
|
}
|
|
252
253
|
},
|
|
253
|
-
execute: async (input) => {
|
|
254
|
+
execute: async (_toolCallId, input) => {
|
|
254
255
|
const key = ensureApiKey()
|
|
255
256
|
const params = parseToolInput(input)
|
|
256
257
|
return callSuperagnt(key, 'POST', '/user/likes/continuation', undefined, params)
|
|
@@ -260,7 +261,7 @@ export default function register(api) {
|
|
|
260
261
|
api.registerTool({
|
|
261
262
|
name: 'superagnt_x_User_s_Likes_get__user_likes',
|
|
262
263
|
description: "User's Likes",
|
|
263
|
-
|
|
264
|
+
parameters: {
|
|
264
265
|
"type": "object",
|
|
265
266
|
"properties": {
|
|
266
267
|
"user_id": {
|
|
@@ -276,7 +277,7 @@ export default function register(api) {
|
|
|
276
277
|
"user_id"
|
|
277
278
|
]
|
|
278
279
|
},
|
|
279
|
-
execute: async (input) => {
|
|
280
|
+
execute: async (_toolCallId, input) => {
|
|
280
281
|
const key = ensureApiKey()
|
|
281
282
|
const params = parseToolInput(input)
|
|
282
283
|
return callSuperagnt(key, 'GET', '/user/likes', params)
|
|
@@ -286,7 +287,7 @@ export default function register(api) {
|
|
|
286
287
|
api.registerTool({
|
|
287
288
|
name: 'superagnt_x_User_s_Likes_post__user_likes',
|
|
288
289
|
description: "User's Likes",
|
|
289
|
-
|
|
290
|
+
parameters: {
|
|
290
291
|
"type": "object",
|
|
291
292
|
"properties": {
|
|
292
293
|
"user_id": {
|
|
@@ -299,7 +300,7 @@ export default function register(api) {
|
|
|
299
300
|
}
|
|
300
301
|
}
|
|
301
302
|
},
|
|
302
|
-
execute: async (input) => {
|
|
303
|
+
execute: async (_toolCallId, input) => {
|
|
303
304
|
const key = ensureApiKey()
|
|
304
305
|
const params = parseToolInput(input)
|
|
305
306
|
return callSuperagnt(key, 'POST', '/user/likes', undefined, params)
|
|
@@ -309,7 +310,7 @@ export default function register(api) {
|
|
|
309
310
|
api.registerTool({
|
|
310
311
|
name: 'superagnt_x_user_followers_continuation_get',
|
|
311
312
|
description: "Continuation User's Followers",
|
|
312
|
-
|
|
313
|
+
parameters: {
|
|
313
314
|
"type": "object",
|
|
314
315
|
"properties": {
|
|
315
316
|
"user_id": {
|
|
@@ -330,7 +331,7 @@ export default function register(api) {
|
|
|
330
331
|
"continuation_token"
|
|
331
332
|
]
|
|
332
333
|
},
|
|
333
|
-
execute: async (input) => {
|
|
334
|
+
execute: async (_toolCallId, input) => {
|
|
334
335
|
const key = ensureApiKey()
|
|
335
336
|
const params = parseToolInput(input)
|
|
336
337
|
return callSuperagnt(key, 'GET', '/user/followers/continuation', params)
|
|
@@ -340,7 +341,7 @@ export default function register(api) {
|
|
|
340
341
|
api.registerTool({
|
|
341
342
|
name: 'superagnt_x_user_followers_continuation_post',
|
|
342
343
|
description: "Continuation User's Followers",
|
|
343
|
-
|
|
344
|
+
parameters: {
|
|
344
345
|
"type": "object",
|
|
345
346
|
"properties": {
|
|
346
347
|
"user_id": {
|
|
@@ -357,7 +358,7 @@ export default function register(api) {
|
|
|
357
358
|
}
|
|
358
359
|
}
|
|
359
360
|
},
|
|
360
|
-
execute: async (input) => {
|
|
361
|
+
execute: async (_toolCallId, input) => {
|
|
361
362
|
const key = ensureApiKey()
|
|
362
363
|
const params = parseToolInput(input)
|
|
363
364
|
return callSuperagnt(key, 'POST', '/user/followers/continuation', undefined, params)
|
|
@@ -367,7 +368,7 @@ export default function register(api) {
|
|
|
367
368
|
api.registerTool({
|
|
368
369
|
name: 'superagnt_x_User_s_Followers_get__user_followers',
|
|
369
370
|
description: "User's Followers",
|
|
370
|
-
|
|
371
|
+
parameters: {
|
|
371
372
|
"type": "object",
|
|
372
373
|
"properties": {
|
|
373
374
|
"limit": {
|
|
@@ -383,7 +384,7 @@ export default function register(api) {
|
|
|
383
384
|
"user_id"
|
|
384
385
|
]
|
|
385
386
|
},
|
|
386
|
-
execute: async (input) => {
|
|
387
|
+
execute: async (_toolCallId, input) => {
|
|
387
388
|
const key = ensureApiKey()
|
|
388
389
|
const params = parseToolInput(input)
|
|
389
390
|
return callSuperagnt(key, 'GET', '/user/followers', params)
|
|
@@ -393,7 +394,7 @@ export default function register(api) {
|
|
|
393
394
|
api.registerTool({
|
|
394
395
|
name: 'superagnt_x_User_s_Followers_post__user_followers',
|
|
395
396
|
description: "User's Followers",
|
|
396
|
-
|
|
397
|
+
parameters: {
|
|
397
398
|
"type": "object",
|
|
398
399
|
"properties": {
|
|
399
400
|
"user_id": {
|
|
@@ -406,7 +407,7 @@ export default function register(api) {
|
|
|
406
407
|
}
|
|
407
408
|
}
|
|
408
409
|
},
|
|
409
|
-
execute: async (input) => {
|
|
410
|
+
execute: async (_toolCallId, input) => {
|
|
410
411
|
const key = ensureApiKey()
|
|
411
412
|
const params = parseToolInput(input)
|
|
412
413
|
return callSuperagnt(key, 'POST', '/user/followers', undefined, params)
|
|
@@ -416,7 +417,7 @@ export default function register(api) {
|
|
|
416
417
|
api.registerTool({
|
|
417
418
|
name: 'superagnt_x_user_following_continuation_get',
|
|
418
419
|
description: "User's Following Continuation",
|
|
419
|
-
|
|
420
|
+
parameters: {
|
|
420
421
|
"type": "object",
|
|
421
422
|
"properties": {
|
|
422
423
|
"continuation_token": {
|
|
@@ -437,7 +438,7 @@ export default function register(api) {
|
|
|
437
438
|
"user_id"
|
|
438
439
|
]
|
|
439
440
|
},
|
|
440
|
-
execute: async (input) => {
|
|
441
|
+
execute: async (_toolCallId, input) => {
|
|
441
442
|
const key = ensureApiKey()
|
|
442
443
|
const params = parseToolInput(input)
|
|
443
444
|
return callSuperagnt(key, 'GET', '/user/following/continuation', params)
|
|
@@ -447,7 +448,7 @@ export default function register(api) {
|
|
|
447
448
|
api.registerTool({
|
|
448
449
|
name: 'superagnt_x_user_following_continuation_post',
|
|
449
450
|
description: "User's Following Continuation",
|
|
450
|
-
|
|
451
|
+
parameters: {
|
|
451
452
|
"type": "object",
|
|
452
453
|
"properties": {
|
|
453
454
|
"user_id": {
|
|
@@ -460,7 +461,7 @@ export default function register(api) {
|
|
|
460
461
|
}
|
|
461
462
|
}
|
|
462
463
|
},
|
|
463
|
-
execute: async (input) => {
|
|
464
|
+
execute: async (_toolCallId, input) => {
|
|
464
465
|
const key = ensureApiKey()
|
|
465
466
|
const params = parseToolInput(input)
|
|
466
467
|
return callSuperagnt(key, 'POST', '/user/following/continuation', undefined, params)
|
|
@@ -470,7 +471,7 @@ export default function register(api) {
|
|
|
470
471
|
api.registerTool({
|
|
471
472
|
name: 'superagnt_x_User_s_Tweets_get__user_tweets',
|
|
472
473
|
description: "User's Tweets",
|
|
473
|
-
|
|
474
|
+
parameters: {
|
|
474
475
|
"type": "object",
|
|
475
476
|
"properties": {
|
|
476
477
|
"include_pinned": {
|
|
@@ -495,7 +496,7 @@ export default function register(api) {
|
|
|
495
496
|
}
|
|
496
497
|
}
|
|
497
498
|
},
|
|
498
|
-
execute: async (input) => {
|
|
499
|
+
execute: async (_toolCallId, input) => {
|
|
499
500
|
const key = ensureApiKey()
|
|
500
501
|
const params = parseToolInput(input)
|
|
501
502
|
return callSuperagnt(key, 'GET', '/user/tweets', params)
|
|
@@ -505,7 +506,7 @@ export default function register(api) {
|
|
|
505
506
|
api.registerTool({
|
|
506
507
|
name: 'superagnt_x_User_s_Tweets_post__user_tweets',
|
|
507
508
|
description: "User's Tweets",
|
|
508
|
-
|
|
509
|
+
parameters: {
|
|
509
510
|
"type": "object",
|
|
510
511
|
"properties": {
|
|
511
512
|
"username": {
|
|
@@ -526,7 +527,7 @@ export default function register(api) {
|
|
|
526
527
|
}
|
|
527
528
|
}
|
|
528
529
|
},
|
|
529
|
-
execute: async (input) => {
|
|
530
|
+
execute: async (_toolCallId, input) => {
|
|
530
531
|
const key = ensureApiKey()
|
|
531
532
|
const params = parseToolInput(input)
|
|
532
533
|
return callSuperagnt(key, 'POST', '/user/tweets', undefined, params)
|
|
@@ -536,7 +537,7 @@ export default function register(api) {
|
|
|
536
537
|
api.registerTool({
|
|
537
538
|
name: 'superagnt_x_user_tweets_continuation_get',
|
|
538
539
|
description: "User's Tweets Continuation",
|
|
539
|
-
|
|
540
|
+
parameters: {
|
|
540
541
|
"type": "object",
|
|
541
542
|
"properties": {
|
|
542
543
|
"username": {
|
|
@@ -564,7 +565,7 @@ export default function register(api) {
|
|
|
564
565
|
"continuation_token"
|
|
565
566
|
]
|
|
566
567
|
},
|
|
567
|
-
execute: async (input) => {
|
|
568
|
+
execute: async (_toolCallId, input) => {
|
|
568
569
|
const key = ensureApiKey()
|
|
569
570
|
const params = parseToolInput(input)
|
|
570
571
|
return callSuperagnt(key, 'GET', '/user/tweets/continuation', params)
|
|
@@ -574,7 +575,7 @@ export default function register(api) {
|
|
|
574
575
|
api.registerTool({
|
|
575
576
|
name: 'superagnt_x_user_tweets_continuation_post',
|
|
576
577
|
description: "User's Tweets Continuation",
|
|
577
|
-
|
|
578
|
+
parameters: {
|
|
578
579
|
"type": "object",
|
|
579
580
|
"properties": {
|
|
580
581
|
"username": {
|
|
@@ -599,7 +600,7 @@ export default function register(api) {
|
|
|
599
600
|
}
|
|
600
601
|
}
|
|
601
602
|
},
|
|
602
|
-
execute: async (input) => {
|
|
603
|
+
execute: async (_toolCallId, input) => {
|
|
603
604
|
const key = ensureApiKey()
|
|
604
605
|
const params = parseToolInput(input)
|
|
605
606
|
return callSuperagnt(key, 'POST', '/user/tweets/continuation', undefined, params)
|
|
@@ -609,7 +610,7 @@ export default function register(api) {
|
|
|
609
610
|
api.registerTool({
|
|
610
611
|
name: 'superagnt_x_User_Details_get__user_details',
|
|
611
612
|
description: "User Details",
|
|
612
|
-
|
|
613
|
+
parameters: {
|
|
613
614
|
"type": "object",
|
|
614
615
|
"properties": {
|
|
615
616
|
"username": {
|
|
@@ -622,7 +623,7 @@ export default function register(api) {
|
|
|
622
623
|
}
|
|
623
624
|
}
|
|
624
625
|
},
|
|
625
|
-
execute: async (input) => {
|
|
626
|
+
execute: async (_toolCallId, input) => {
|
|
626
627
|
const key = ensureApiKey()
|
|
627
628
|
const params = parseToolInput(input)
|
|
628
629
|
return callSuperagnt(key, 'GET', '/user/details', params)
|
|
@@ -632,7 +633,7 @@ export default function register(api) {
|
|
|
632
633
|
api.registerTool({
|
|
633
634
|
name: 'superagnt_x_User_Details_post__user_details',
|
|
634
635
|
description: "User Details",
|
|
635
|
-
|
|
636
|
+
parameters: {
|
|
636
637
|
"type": "object",
|
|
637
638
|
"properties": {
|
|
638
639
|
"username": {
|
|
@@ -641,7 +642,7 @@ export default function register(api) {
|
|
|
641
642
|
}
|
|
642
643
|
}
|
|
643
644
|
},
|
|
644
|
-
execute: async (input) => {
|
|
645
|
+
execute: async (_toolCallId, input) => {
|
|
645
646
|
const key = ensureApiKey()
|
|
646
647
|
const params = parseToolInput(input)
|
|
647
648
|
return callSuperagnt(key, 'POST', '/user/details', undefined, params)
|
|
@@ -651,7 +652,7 @@ export default function register(api) {
|
|
|
651
652
|
api.registerTool({
|
|
652
653
|
name: 'superagnt_x_User_About_get__user_about',
|
|
653
654
|
description: "User About",
|
|
654
|
-
|
|
655
|
+
parameters: {
|
|
655
656
|
"type": "object",
|
|
656
657
|
"properties": {
|
|
657
658
|
"username": {
|
|
@@ -663,7 +664,7 @@ export default function register(api) {
|
|
|
663
664
|
"username"
|
|
664
665
|
]
|
|
665
666
|
},
|
|
666
|
-
execute: async (input) => {
|
|
667
|
+
execute: async (_toolCallId, input) => {
|
|
667
668
|
const key = ensureApiKey()
|
|
668
669
|
const params = parseToolInput(input)
|
|
669
670
|
return callSuperagnt(key, 'GET', '/user/about', params)
|
|
@@ -673,7 +674,7 @@ export default function register(api) {
|
|
|
673
674
|
api.registerTool({
|
|
674
675
|
name: 'superagnt_x_tweet_replies_continuation_get',
|
|
675
676
|
description: "Tweet Replies Continuation",
|
|
676
|
-
|
|
677
|
+
parameters: {
|
|
677
678
|
"type": "object",
|
|
678
679
|
"properties": {
|
|
679
680
|
"continuation_token": {
|
|
@@ -690,7 +691,7 @@ export default function register(api) {
|
|
|
690
691
|
"tweet_id"
|
|
691
692
|
]
|
|
692
693
|
},
|
|
693
|
-
execute: async (input) => {
|
|
694
|
+
execute: async (_toolCallId, input) => {
|
|
694
695
|
const key = ensureApiKey()
|
|
695
696
|
const params = parseToolInput(input)
|
|
696
697
|
return callSuperagnt(key, 'GET', '/tweet/replies/continuation', params)
|
|
@@ -700,7 +701,7 @@ export default function register(api) {
|
|
|
700
701
|
api.registerTool({
|
|
701
702
|
name: 'superagnt_x_tweet_replies_continuation_post',
|
|
702
703
|
description: "Tweet Replies Continuation",
|
|
703
|
-
|
|
704
|
+
parameters: {
|
|
704
705
|
"type": "object",
|
|
705
706
|
"properties": {
|
|
706
707
|
"tweet_id": {
|
|
@@ -713,7 +714,7 @@ export default function register(api) {
|
|
|
713
714
|
}
|
|
714
715
|
}
|
|
715
716
|
},
|
|
716
|
-
execute: async (input) => {
|
|
717
|
+
execute: async (_toolCallId, input) => {
|
|
717
718
|
const key = ensureApiKey()
|
|
718
719
|
const params = parseToolInput(input)
|
|
719
720
|
return callSuperagnt(key, 'POST', '/tweet/replies/continuation', undefined, params)
|
|
@@ -723,7 +724,7 @@ export default function register(api) {
|
|
|
723
724
|
api.registerTool({
|
|
724
725
|
name: 'superagnt_x_tweet_favoriters_continuation_get',
|
|
725
726
|
description: "Tweet User Favoriters Continuation",
|
|
726
|
-
|
|
727
|
+
parameters: {
|
|
727
728
|
"type": "object",
|
|
728
729
|
"properties": {
|
|
729
730
|
"continuation_token": {
|
|
@@ -740,7 +741,7 @@ export default function register(api) {
|
|
|
740
741
|
"tweet_id"
|
|
741
742
|
]
|
|
742
743
|
},
|
|
743
|
-
execute: async (input) => {
|
|
744
|
+
execute: async (_toolCallId, input) => {
|
|
744
745
|
const key = ensureApiKey()
|
|
745
746
|
const params = parseToolInput(input)
|
|
746
747
|
return callSuperagnt(key, 'GET', '/tweet/favoriters/continuation', params)
|
|
@@ -750,7 +751,7 @@ export default function register(api) {
|
|
|
750
751
|
api.registerTool({
|
|
751
752
|
name: 'superagnt_x_tweet_retweets_continuation_get',
|
|
752
753
|
description: "Tweet User Retweets Continuation",
|
|
753
|
-
|
|
754
|
+
parameters: {
|
|
754
755
|
"type": "object",
|
|
755
756
|
"properties": {
|
|
756
757
|
"continuation_token": {
|
|
@@ -771,7 +772,7 @@ export default function register(api) {
|
|
|
771
772
|
"tweet_id"
|
|
772
773
|
]
|
|
773
774
|
},
|
|
774
|
-
execute: async (input) => {
|
|
775
|
+
execute: async (_toolCallId, input) => {
|
|
775
776
|
const key = ensureApiKey()
|
|
776
777
|
const params = parseToolInput(input)
|
|
777
778
|
return callSuperagnt(key, 'GET', '/tweet/retweets/continuation', params)
|
|
@@ -781,7 +782,7 @@ export default function register(api) {
|
|
|
781
782
|
api.registerTool({
|
|
782
783
|
name: 'superagnt_x_Tweet_Details_get__tweet_details',
|
|
783
784
|
description: "Tweet Details",
|
|
784
|
-
|
|
785
|
+
parameters: {
|
|
785
786
|
"type": "object",
|
|
786
787
|
"properties": {
|
|
787
788
|
"tweet_id": {
|
|
@@ -793,7 +794,7 @@ export default function register(api) {
|
|
|
793
794
|
"tweet_id"
|
|
794
795
|
]
|
|
795
796
|
},
|
|
796
|
-
execute: async (input) => {
|
|
797
|
+
execute: async (_toolCallId, input) => {
|
|
797
798
|
const key = ensureApiKey()
|
|
798
799
|
const params = parseToolInput(input)
|
|
799
800
|
return callSuperagnt(key, 'GET', '/tweet/details', params)
|
|
@@ -803,7 +804,7 @@ export default function register(api) {
|
|
|
803
804
|
api.registerTool({
|
|
804
805
|
name: 'superagnt_x_Tweet_Details_post__tweet_details',
|
|
805
806
|
description: "Tweet Details",
|
|
806
|
-
|
|
807
|
+
parameters: {
|
|
807
808
|
"type": "object",
|
|
808
809
|
"properties": {
|
|
809
810
|
"tweet_id": {
|
|
@@ -812,7 +813,7 @@ export default function register(api) {
|
|
|
812
813
|
}
|
|
813
814
|
}
|
|
814
815
|
},
|
|
815
|
-
execute: async (input) => {
|
|
816
|
+
execute: async (_toolCallId, input) => {
|
|
816
817
|
const key = ensureApiKey()
|
|
817
818
|
const params = parseToolInput(input)
|
|
818
819
|
return callSuperagnt(key, 'POST', '/tweet/details', undefined, params)
|
|
@@ -822,7 +823,7 @@ export default function register(api) {
|
|
|
822
823
|
api.registerTool({
|
|
823
824
|
name: 'superagnt_x_Tweet_User_Favoriters_get__tweet_favoriters',
|
|
824
825
|
description: "Tweet User Favoriters",
|
|
825
|
-
|
|
826
|
+
parameters: {
|
|
826
827
|
"type": "object",
|
|
827
828
|
"properties": {
|
|
828
829
|
"tweet_id": {
|
|
@@ -834,7 +835,7 @@ export default function register(api) {
|
|
|
834
835
|
"tweet_id"
|
|
835
836
|
]
|
|
836
837
|
},
|
|
837
|
-
execute: async (input) => {
|
|
838
|
+
execute: async (_toolCallId, input) => {
|
|
838
839
|
const key = ensureApiKey()
|
|
839
840
|
const params = parseToolInput(input)
|
|
840
841
|
return callSuperagnt(key, 'GET', '/tweet/favoriters', params)
|
|
@@ -844,7 +845,7 @@ export default function register(api) {
|
|
|
844
845
|
api.registerTool({
|
|
845
846
|
name: 'superagnt_x_Tweet_User_Retweets_get__tweet_retweets',
|
|
846
847
|
description: "Tweet User Retweets",
|
|
847
|
-
|
|
848
|
+
parameters: {
|
|
848
849
|
"type": "object",
|
|
849
850
|
"properties": {
|
|
850
851
|
"tweet_id": {
|
|
@@ -860,7 +861,7 @@ export default function register(api) {
|
|
|
860
861
|
"tweet_id"
|
|
861
862
|
]
|
|
862
863
|
},
|
|
863
|
-
execute: async (input) => {
|
|
864
|
+
execute: async (_toolCallId, input) => {
|
|
864
865
|
const key = ensureApiKey()
|
|
865
866
|
const params = parseToolInput(input)
|
|
866
867
|
return callSuperagnt(key, 'GET', '/tweet/retweets', params)
|
|
@@ -870,7 +871,7 @@ export default function register(api) {
|
|
|
870
871
|
api.registerTool({
|
|
871
872
|
name: 'superagnt_x_Tweet_Replies_get__tweet_replies',
|
|
872
873
|
description: "Tweet Replies",
|
|
873
|
-
|
|
874
|
+
parameters: {
|
|
874
875
|
"type": "object",
|
|
875
876
|
"properties": {
|
|
876
877
|
"tweet_id": {
|
|
@@ -882,7 +883,7 @@ export default function register(api) {
|
|
|
882
883
|
"tweet_id"
|
|
883
884
|
]
|
|
884
885
|
},
|
|
885
|
-
execute: async (input) => {
|
|
886
|
+
execute: async (_toolCallId, input) => {
|
|
886
887
|
const key = ensureApiKey()
|
|
887
888
|
const params = parseToolInput(input)
|
|
888
889
|
return callSuperagnt(key, 'GET', '/tweet/replies', params)
|
|
@@ -892,7 +893,7 @@ export default function register(api) {
|
|
|
892
893
|
api.registerTool({
|
|
893
894
|
name: 'superagnt_x_Tweet_Replies_post__tweet_replies',
|
|
894
895
|
description: "Tweet Replies",
|
|
895
|
-
|
|
896
|
+
parameters: {
|
|
896
897
|
"type": "object",
|
|
897
898
|
"properties": {
|
|
898
899
|
"tweet_id": {
|
|
@@ -901,7 +902,7 @@ export default function register(api) {
|
|
|
901
902
|
}
|
|
902
903
|
}
|
|
903
904
|
},
|
|
904
|
-
execute: async (input) => {
|
|
905
|
+
execute: async (_toolCallId, input) => {
|
|
905
906
|
const key = ensureApiKey()
|
|
906
907
|
const params = parseToolInput(input)
|
|
907
908
|
return callSuperagnt(key, 'POST', '/tweet/replies', undefined, params)
|
|
@@ -911,7 +912,7 @@ export default function register(api) {
|
|
|
911
912
|
api.registerTool({
|
|
912
913
|
name: 'superagnt_x_User_s_Following_get__user_following',
|
|
913
914
|
description: "User's Following",
|
|
914
|
-
|
|
915
|
+
parameters: {
|
|
915
916
|
"type": "object",
|
|
916
917
|
"properties": {
|
|
917
918
|
"user_id": {
|
|
@@ -927,7 +928,7 @@ export default function register(api) {
|
|
|
927
928
|
"user_id"
|
|
928
929
|
]
|
|
929
930
|
},
|
|
930
|
-
execute: async (input) => {
|
|
931
|
+
execute: async (_toolCallId, input) => {
|
|
931
932
|
const key = ensureApiKey()
|
|
932
933
|
const params = parseToolInput(input)
|
|
933
934
|
return callSuperagnt(key, 'GET', '/user/following', params)
|
|
@@ -937,7 +938,7 @@ export default function register(api) {
|
|
|
937
938
|
api.registerTool({
|
|
938
939
|
name: 'superagnt_x_User_s_Following_post__user_following',
|
|
939
940
|
description: "User's Following",
|
|
940
|
-
|
|
941
|
+
parameters: {
|
|
941
942
|
"type": "object",
|
|
942
943
|
"properties": {
|
|
943
944
|
"user_id": {
|
|
@@ -950,7 +951,7 @@ export default function register(api) {
|
|
|
950
951
|
}
|
|
951
952
|
}
|
|
952
953
|
},
|
|
953
|
-
execute: async (input) => {
|
|
954
|
+
execute: async (_toolCallId, input) => {
|
|
954
955
|
const key = ensureApiKey()
|
|
955
956
|
const params = parseToolInput(input)
|
|
956
957
|
return callSuperagnt(key, 'POST', '/user/following', undefined, params)
|
|
@@ -960,7 +961,7 @@ export default function register(api) {
|
|
|
960
961
|
api.registerTool({
|
|
961
962
|
name: 'superagnt_x_lists_tweets_continuation_get',
|
|
962
963
|
description: "Lists Tweets Continuation",
|
|
963
|
-
|
|
964
|
+
parameters: {
|
|
964
965
|
"type": "object",
|
|
965
966
|
"properties": {
|
|
966
967
|
"limit": {
|
|
@@ -981,7 +982,7 @@ export default function register(api) {
|
|
|
981
982
|
"continuation_token"
|
|
982
983
|
]
|
|
983
984
|
},
|
|
984
|
-
execute: async (input) => {
|
|
985
|
+
execute: async (_toolCallId, input) => {
|
|
985
986
|
const key = ensureApiKey()
|
|
986
987
|
const params = parseToolInput(input)
|
|
987
988
|
return callSuperagnt(key, 'GET', '/lists/tweets/continuation', params)
|
|
@@ -991,7 +992,7 @@ export default function register(api) {
|
|
|
991
992
|
api.registerTool({
|
|
992
993
|
name: 'superagnt_x_search_continuation_get',
|
|
993
994
|
description: "Search Continuation",
|
|
994
|
-
|
|
995
|
+
parameters: {
|
|
995
996
|
"type": "object",
|
|
996
997
|
"properties": {
|
|
997
998
|
"end_date": {
|
|
@@ -1040,7 +1041,7 @@ export default function register(api) {
|
|
|
1040
1041
|
"query"
|
|
1041
1042
|
]
|
|
1042
1043
|
},
|
|
1043
|
-
execute: async (input) => {
|
|
1044
|
+
execute: async (_toolCallId, input) => {
|
|
1044
1045
|
const key = ensureApiKey()
|
|
1045
1046
|
const params = parseToolInput(input)
|
|
1046
1047
|
return callSuperagnt(key, 'GET', '/search/search/continuation', params)
|
|
@@ -1050,7 +1051,7 @@ export default function register(api) {
|
|
|
1050
1051
|
api.registerTool({
|
|
1051
1052
|
name: 'superagnt_x_search_continuation_post',
|
|
1052
1053
|
description: "Search Continuation",
|
|
1053
|
-
|
|
1054
|
+
parameters: {
|
|
1054
1055
|
"type": "object",
|
|
1055
1056
|
"properties": {
|
|
1056
1057
|
"query": {
|
|
@@ -1087,7 +1088,7 @@ export default function register(api) {
|
|
|
1087
1088
|
}
|
|
1088
1089
|
}
|
|
1089
1090
|
},
|
|
1090
|
-
execute: async (input) => {
|
|
1091
|
+
execute: async (_toolCallId, input) => {
|
|
1091
1092
|
const key = ensureApiKey()
|
|
1092
1093
|
const params = parseToolInput(input)
|
|
1093
1094
|
return callSuperagnt(key, 'POST', '/search/search/continuation', undefined, params)
|
|
@@ -1097,7 +1098,7 @@ export default function register(api) {
|
|
|
1097
1098
|
api.registerTool({
|
|
1098
1099
|
name: 'superagnt_x_ai_topic_classification',
|
|
1099
1100
|
description: "Topic Classification",
|
|
1100
|
-
|
|
1101
|
+
parameters: {
|
|
1101
1102
|
"type": "object",
|
|
1102
1103
|
"properties": {
|
|
1103
1104
|
"text": {
|
|
@@ -1109,7 +1110,7 @@ export default function register(api) {
|
|
|
1109
1110
|
"text"
|
|
1110
1111
|
]
|
|
1111
1112
|
},
|
|
1112
|
-
execute: async (input) => {
|
|
1113
|
+
execute: async (_toolCallId, input) => {
|
|
1113
1114
|
const key = ensureApiKey()
|
|
1114
1115
|
const params = parseToolInput(input)
|
|
1115
1116
|
return callSuperagnt(key, 'GET', '/ai/topic-classification', params)
|
|
@@ -1119,7 +1120,7 @@ export default function register(api) {
|
|
|
1119
1120
|
api.registerTool({
|
|
1120
1121
|
name: 'superagnt_x_Detect_post__translate_detect',
|
|
1121
1122
|
description: "Detect",
|
|
1122
|
-
|
|
1123
|
+
parameters: {
|
|
1123
1124
|
"type": "object",
|
|
1124
1125
|
"properties": {
|
|
1125
1126
|
"text": {
|
|
@@ -1128,7 +1129,7 @@ export default function register(api) {
|
|
|
1128
1129
|
}
|
|
1129
1130
|
}
|
|
1130
1131
|
},
|
|
1131
|
-
execute: async (input) => {
|
|
1132
|
+
execute: async (_toolCallId, input) => {
|
|
1132
1133
|
const key = ensureApiKey()
|
|
1133
1134
|
const params = parseToolInput(input)
|
|
1134
1135
|
return callSuperagnt(key, 'POST', '/translate/detect', undefined, params)
|
|
@@ -1138,7 +1139,7 @@ export default function register(api) {
|
|
|
1138
1139
|
api.registerTool({
|
|
1139
1140
|
name: 'superagnt_x_ai_named_entity_recognition',
|
|
1140
1141
|
description: "Named Entity Recognition",
|
|
1141
|
-
|
|
1142
|
+
parameters: {
|
|
1142
1143
|
"type": "object",
|
|
1143
1144
|
"properties": {
|
|
1144
1145
|
"text": {
|
|
@@ -1150,7 +1151,7 @@ export default function register(api) {
|
|
|
1150
1151
|
"text"
|
|
1151
1152
|
]
|
|
1152
1153
|
},
|
|
1153
|
-
execute: async (input) => {
|
|
1154
|
+
execute: async (_toolCallId, input) => {
|
|
1154
1155
|
const key = ensureApiKey()
|
|
1155
1156
|
const params = parseToolInput(input)
|
|
1156
1157
|
return callSuperagnt(key, 'GET', '/ai/named-entity-recognition', params)
|
|
@@ -1160,7 +1161,7 @@ export default function register(api) {
|
|
|
1160
1161
|
api.registerTool({
|
|
1161
1162
|
name: 'superagnt_x_Sentiment_Analysis_get__ai_sentiment_analysis',
|
|
1162
1163
|
description: "Sentiment Analysis",
|
|
1163
|
-
|
|
1164
|
+
parameters: {
|
|
1164
1165
|
"type": "object",
|
|
1165
1166
|
"properties": {
|
|
1166
1167
|
"text": {
|
|
@@ -1172,7 +1173,7 @@ export default function register(api) {
|
|
|
1172
1173
|
"text"
|
|
1173
1174
|
]
|
|
1174
1175
|
},
|
|
1175
|
-
execute: async (input) => {
|
|
1176
|
+
execute: async (_toolCallId, input) => {
|
|
1176
1177
|
const key = ensureApiKey()
|
|
1177
1178
|
const params = parseToolInput(input)
|
|
1178
1179
|
return callSuperagnt(key, 'GET', '/ai/sentiment-analysis', params)
|
|
@@ -1182,7 +1183,7 @@ export default function register(api) {
|
|
|
1182
1183
|
api.registerTool({
|
|
1183
1184
|
name: 'superagnt_x_Translate_post__translate',
|
|
1184
1185
|
description: "Translate",
|
|
1185
|
-
|
|
1186
|
+
parameters: {
|
|
1186
1187
|
"type": "object",
|
|
1187
1188
|
"properties": {
|
|
1188
1189
|
"dest": {
|
|
@@ -1195,7 +1196,7 @@ export default function register(api) {
|
|
|
1195
1196
|
}
|
|
1196
1197
|
}
|
|
1197
1198
|
},
|
|
1198
|
-
execute: async (input) => {
|
|
1199
|
+
execute: async (_toolCallId, input) => {
|
|
1199
1200
|
const key = ensureApiKey()
|
|
1200
1201
|
const params = parseToolInput(input)
|
|
1201
1202
|
return callSuperagnt(key, 'POST', '/translate', undefined, params)
|
|
@@ -1205,11 +1206,11 @@ export default function register(api) {
|
|
|
1205
1206
|
api.registerTool({
|
|
1206
1207
|
name: 'superagnt_x_trends_available_locations',
|
|
1207
1208
|
description: "Available Locations (Beta)",
|
|
1208
|
-
|
|
1209
|
+
parameters: {
|
|
1209
1210
|
"type": "object",
|
|
1210
1211
|
"properties": {}
|
|
1211
1212
|
},
|
|
1212
|
-
execute: async (input) => {
|
|
1213
|
+
execute: async (_toolCallId, input) => {
|
|
1213
1214
|
const key = ensureApiKey()
|
|
1214
1215
|
const params = parseToolInput(input)
|
|
1215
1216
|
return callSuperagnt(key, 'GET', '/trends/available', params)
|
|
@@ -1219,7 +1220,7 @@ export default function register(api) {
|
|
|
1219
1220
|
api.registerTool({
|
|
1220
1221
|
name: 'superagnt_x_Get_trends_near_a_location__Beta__get__trends',
|
|
1221
1222
|
description: "Get trends near a location (Beta)",
|
|
1222
|
-
|
|
1223
|
+
parameters: {
|
|
1223
1224
|
"type": "object",
|
|
1224
1225
|
"properties": {
|
|
1225
1226
|
"woeid": {
|
|
@@ -1231,7 +1232,7 @@ export default function register(api) {
|
|
|
1231
1232
|
"woeid"
|
|
1232
1233
|
]
|
|
1233
1234
|
},
|
|
1234
|
-
execute: async (input) => {
|
|
1235
|
+
execute: async (_toolCallId, input) => {
|
|
1235
1236
|
const key = ensureApiKey()
|
|
1236
1237
|
const params = parseToolInput(input)
|
|
1237
1238
|
return callSuperagnt(key, 'GET', '/trends/', params)
|
|
@@ -1241,7 +1242,7 @@ export default function register(api) {
|
|
|
1241
1242
|
api.registerTool({
|
|
1242
1243
|
name: 'superagnt_x_Geo_Search___Beta__get__search_geo',
|
|
1243
1244
|
description: "Geo Search (Beta)",
|
|
1244
|
-
|
|
1245
|
+
parameters: {
|
|
1245
1246
|
"type": "object",
|
|
1246
1247
|
"properties": {
|
|
1247
1248
|
"section": {
|
|
@@ -1277,7 +1278,7 @@ export default function register(api) {
|
|
|
1277
1278
|
"query"
|
|
1278
1279
|
]
|
|
1279
1280
|
},
|
|
1280
|
-
execute: async (input) => {
|
|
1281
|
+
execute: async (_toolCallId, input) => {
|
|
1281
1282
|
const key = ensureApiKey()
|
|
1282
1283
|
const params = parseToolInput(input)
|
|
1283
1284
|
return callSuperagnt(key, 'GET', '/search/geo', params)
|
|
@@ -1287,7 +1288,7 @@ export default function register(api) {
|
|
|
1287
1288
|
api.registerTool({
|
|
1288
1289
|
name: 'superagnt_x_Lists_Tweets_get__lists_tweets',
|
|
1289
1290
|
description: "Lists Tweets",
|
|
1290
|
-
|
|
1291
|
+
parameters: {
|
|
1291
1292
|
"type": "object",
|
|
1292
1293
|
"properties": {
|
|
1293
1294
|
"limit": {
|
|
@@ -1303,7 +1304,7 @@ export default function register(api) {
|
|
|
1303
1304
|
"list_id"
|
|
1304
1305
|
]
|
|
1305
1306
|
},
|
|
1306
|
-
execute: async (input) => {
|
|
1307
|
+
execute: async (_toolCallId, input) => {
|
|
1307
1308
|
const key = ensureApiKey()
|
|
1308
1309
|
const params = parseToolInput(input)
|
|
1309
1310
|
return callSuperagnt(key, 'GET', '/lists/tweets', params)
|
|
@@ -1313,7 +1314,7 @@ export default function register(api) {
|
|
|
1313
1314
|
api.registerTool({
|
|
1314
1315
|
name: 'superagnt_x_Lists_Details_get__lists_details',
|
|
1315
1316
|
description: "Lists Details",
|
|
1316
|
-
|
|
1317
|
+
parameters: {
|
|
1317
1318
|
"type": "object",
|
|
1318
1319
|
"properties": {
|
|
1319
1320
|
"list_id": {
|
|
@@ -1325,7 +1326,7 @@ export default function register(api) {
|
|
|
1325
1326
|
"list_id"
|
|
1326
1327
|
]
|
|
1327
1328
|
},
|
|
1328
|
-
execute: async (input) => {
|
|
1329
|
+
execute: async (_toolCallId, input) => {
|
|
1329
1330
|
const key = ensureApiKey()
|
|
1330
1331
|
const params = parseToolInput(input)
|
|
1331
1332
|
return callSuperagnt(key, 'GET', '/lists/details', params)
|
|
@@ -1335,7 +1336,7 @@ export default function register(api) {
|
|
|
1335
1336
|
api.registerTool({
|
|
1336
1337
|
name: 'superagnt_x_Search_get__search_search',
|
|
1337
1338
|
description: "Search",
|
|
1338
|
-
|
|
1339
|
+
parameters: {
|
|
1339
1340
|
"type": "object",
|
|
1340
1341
|
"properties": {
|
|
1341
1342
|
"limit": {
|
|
@@ -1379,7 +1380,7 @@ export default function register(api) {
|
|
|
1379
1380
|
"query"
|
|
1380
1381
|
]
|
|
1381
1382
|
},
|
|
1382
|
-
execute: async (input) => {
|
|
1383
|
+
execute: async (_toolCallId, input) => {
|
|
1383
1384
|
const key = ensureApiKey()
|
|
1384
1385
|
const params = parseToolInput(input)
|
|
1385
1386
|
return callSuperagnt(key, 'GET', '/search/search', params)
|
|
@@ -1389,7 +1390,7 @@ export default function register(api) {
|
|
|
1389
1390
|
api.registerTool({
|
|
1390
1391
|
name: 'superagnt_x_Search_post__search_search',
|
|
1391
1392
|
description: "Search",
|
|
1392
|
-
|
|
1393
|
+
parameters: {
|
|
1393
1394
|
"type": "object",
|
|
1394
1395
|
"properties": {
|
|
1395
1396
|
"query": {
|
|
@@ -1422,7 +1423,7 @@ export default function register(api) {
|
|
|
1422
1423
|
}
|
|
1423
1424
|
}
|
|
1424
1425
|
},
|
|
1425
|
-
execute: async (input) => {
|
|
1426
|
+
execute: async (_toolCallId, input) => {
|
|
1426
1427
|
const key = ensureApiKey()
|
|
1427
1428
|
const params = parseToolInput(input)
|
|
1428
1429
|
return callSuperagnt(key, 'POST', '/search/search', undefined, params)
|
|
@@ -1432,7 +1433,7 @@ export default function register(api) {
|
|
|
1432
1433
|
api.registerTool({
|
|
1433
1434
|
name: 'superagnt_x_Hashtag_get__hashtag_hashtag',
|
|
1434
1435
|
description: "Hashtag",
|
|
1435
|
-
|
|
1436
|
+
parameters: {
|
|
1436
1437
|
"type": "object",
|
|
1437
1438
|
"properties": {
|
|
1438
1439
|
"section": {
|
|
@@ -1452,7 +1453,7 @@ export default function register(api) {
|
|
|
1452
1453
|
"hashtag"
|
|
1453
1454
|
]
|
|
1454
1455
|
},
|
|
1455
|
-
execute: async (input) => {
|
|
1456
|
+
execute: async (_toolCallId, input) => {
|
|
1456
1457
|
const key = ensureApiKey()
|
|
1457
1458
|
const params = parseToolInput(input)
|
|
1458
1459
|
return callSuperagnt(key, 'GET', '/hashtag/hashtag', params)
|
|
@@ -1462,7 +1463,7 @@ export default function register(api) {
|
|
|
1462
1463
|
api.registerTool({
|
|
1463
1464
|
name: 'superagnt_x_Hashtag_post__hashtag_hashtag',
|
|
1464
1465
|
description: "Hashtag",
|
|
1465
|
-
|
|
1466
|
+
parameters: {
|
|
1466
1467
|
"type": "object",
|
|
1467
1468
|
"properties": {
|
|
1468
1469
|
"hashtag": {
|
|
@@ -1483,7 +1484,7 @@ export default function register(api) {
|
|
|
1483
1484
|
}
|
|
1484
1485
|
}
|
|
1485
1486
|
},
|
|
1486
|
-
execute: async (input) => {
|
|
1487
|
+
execute: async (_toolCallId, input) => {
|
|
1487
1488
|
const key = ensureApiKey()
|
|
1488
1489
|
const params = parseToolInput(input)
|
|
1489
1490
|
return callSuperagnt(key, 'POST', '/hashtag/hashtag', undefined, params)
|
|
@@ -1493,7 +1494,7 @@ export default function register(api) {
|
|
|
1493
1494
|
api.registerTool({
|
|
1494
1495
|
name: 'superagnt_x_hashtag_continuation_get',
|
|
1495
1496
|
description: "Hashtag Continuation",
|
|
1496
|
-
|
|
1497
|
+
parameters: {
|
|
1497
1498
|
"type": "object",
|
|
1498
1499
|
"properties": {
|
|
1499
1500
|
"continuation_token": {
|
|
@@ -1518,7 +1519,7 @@ export default function register(api) {
|
|
|
1518
1519
|
"hashtag"
|
|
1519
1520
|
]
|
|
1520
1521
|
},
|
|
1521
|
-
execute: async (input) => {
|
|
1522
|
+
execute: async (_toolCallId, input) => {
|
|
1522
1523
|
const key = ensureApiKey()
|
|
1523
1524
|
const params = parseToolInput(input)
|
|
1524
1525
|
return callSuperagnt(key, 'GET', '/hashtag/hashtag/continuation', params)
|
|
@@ -1528,7 +1529,7 @@ export default function register(api) {
|
|
|
1528
1529
|
api.registerTool({
|
|
1529
1530
|
name: 'superagnt_x_hashtag_continuation_post',
|
|
1530
1531
|
description: "Hashtag Continuation",
|
|
1531
|
-
|
|
1532
|
+
parameters: {
|
|
1532
1533
|
"type": "object",
|
|
1533
1534
|
"properties": {
|
|
1534
1535
|
"hashtag": {
|
|
@@ -1553,7 +1554,7 @@ export default function register(api) {
|
|
|
1553
1554
|
}
|
|
1554
1555
|
}
|
|
1555
1556
|
},
|
|
1556
|
-
execute: async (input) => {
|
|
1557
|
+
execute: async (_toolCallId, input) => {
|
|
1557
1558
|
const key = ensureApiKey()
|
|
1558
1559
|
const params = parseToolInput(input)
|
|
1559
1560
|
return callSuperagnt(key, 'POST', '/hashtag/hashtag/continuation', undefined, params)
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "x-twitter-data",
|
|
3
3
|
"name": "X (Twitter) Data",
|
|
4
4
|
"description": "Unified access to tweets, user profiles, followers, search, and hashtag streams. Built for LLMs and automation — not one-off scraping.",
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.5",
|
|
6
6
|
"contracts": {
|
|
7
7
|
"tools": [
|
|
8
8
|
"superagnt_x_user_medias_continuation_get",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superagnt/x-twitter-data",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Unified access to tweets, user profiles, followers, search, and hashtag streams. Built for LLMs and automation — not one-off scraping.",
|
|
6
6
|
"main": "index.js",
|