Skip to content

fix: add getPage to toolMap so xeepy tools can access the browser#16

Closed
nj-io wants to merge 1 commit intonirholas:mainfrom
nj-io:fix/getpage-toolmap
Closed

fix: add getPage to toolMap so xeepy tools can access the browser#16
nj-io wants to merge 1 commit intonirholas:mainfrom
nj-io:fix/getpage-toolmap

Conversation

@nj-io
Copy link
Copy Markdown

@nj-io nj-io commented Apr 5, 2026

Summary

  • getPage() is exported from local-tools.js but was missing from the toolMap object
  • server.js line 2228 sets localTools = tools.toolMap || tools.default || tools — since toolMap exists, it takes priority
  • All xeepy tools calling localTools.getPage() fail with "localTools.getPage is not a function"

One-line fix: add getPage to the toolMap export.

Affected tools

Every tool in the executeXeepyTool switch that calls localTools.getPage():

x_quote_tweet, x_get_replies, x_get_media, x_get_recommendations, x_get_mentions, x_get_quote_tweets, x_get_hashtag, x_get_likers, x_get_retweeters, x_auto_follow, x_follow_engagers, x_auto_comment, x_auto_retweet, x_detect_bots, x_find_influencers, x_smart_target, x_audience_insights, x_engagement_report, x_monitor_account, x_monitor_keyword, x_follower_alerts, x_track_engagement

Test plan

  • x_quote_tweet posts successfully (was failing with getPage error)
  • x_get_replies returns replies (was failing with getPage error)
  • Other xeepy tools that call localTools.getPage() no longer error

🤖 Generated with Claude Code

getPage() is exported from local-tools.js but was missing from the
toolMap object. Since server.js sets localTools = tools.toolMap (line
2228), all xeepy tools calling localTools.getPage() fail with
"localTools.getPage is not a function".

Affects: x_quote_tweet, x_get_replies, x_get_media, x_get_recommendations,
x_get_mentions, x_get_quote_tweets, and all other executeXeepyTool handlers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nj-io nj-io requested a review from nirholas as a code owner April 5, 2026 06:21
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 5, 2026

@nj-io is attempting to deploy a commit to the kaivocmenirehtacgmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@nj-io
Copy link
Copy Markdown
Author

nj-io commented Apr 7, 2026

Superseded — resubmitting as clean PRs from current codebase.

@nj-io nj-io closed this Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant