- Remove X tools from general register_tools.py - Add post_to_x tool to register_x_tools.py - Tool creates standalone posts on X (not replies) - Properly organized with other X-specific tools
···20from tools.whitewind import create_whitewind_blog_post, WhitewindPostArgs
21from tools.ack import annotate_ack, AnnotateAckArgs
22from tools.webpage import fetch_webpage, WebpageArgs
23-from tools.x_post import post_to_x, PostToXArgs
24-from tools.x_thread import add_post_to_x_thread, XThreadPostArgs
2526letta_config = get_letta_config()
27logging.basicConfig(level=logging.INFO)
···116 "args_schema": WebpageArgs,
117 "description": "Fetch a webpage and convert it to markdown/text format using Jina AI reader",
118 "tags": ["web", "fetch", "webpage", "markdown", "jina"]
119- },
120- {
121- "func": post_to_x,
122- "args_schema": PostToXArgs,
123- "description": "Create a new standalone post on X (Twitter)",
124- "tags": ["x", "twitter", "post", "create"]
125- },
126- {
127- "func": add_post_to_x_thread,
128- "args_schema": XThreadPostArgs,
129- "description": "Add a single post to the current X reply thread atomically",
130- "tags": ["x", "twitter", "reply", "thread", "atomic"]
131 },
132]
133
···20from tools.whitewind import create_whitewind_blog_post, WhitewindPostArgs
21from tools.ack import annotate_ack, AnnotateAckArgs
22from tools.webpage import fetch_webpage, WebpageArgs
002324letta_config = get_letta_config()
25logging.basicConfig(level=logging.INFO)
···114 "args_schema": WebpageArgs,
115 "description": "Fetch a webpage and convert it to markdown/text format using Jina AI reader",
116 "tags": ["web", "fetch", "webpage", "markdown", "jina"]
000000000000117 },
118]
119
+11
register_x_tools.py
···23# Import X thread tool
24from tools.x_thread import add_post_to_x_thread, XThreadPostArgs
2500026# Import X search tool
27from tools.search_x import search_x_posts, SearchXArgs
28···109 "args_schema": XThreadPostArgs,
110 "description": "Add a single post to the current X reply thread atomically",
111 "tags": ["x", "twitter", "reply", "thread", "atomic"]
00000000112 },
113114 # X search tool
···23# Import X thread tool
24from tools.x_thread import add_post_to_x_thread, XThreadPostArgs
2526+# Import X post tool
27+from tools.x_post import post_to_x, PostToXArgs
28+29# Import X search tool
30from tools.search_x import search_x_posts, SearchXArgs
31···112 "args_schema": XThreadPostArgs,
113 "description": "Add a single post to the current X reply thread atomically",
114 "tags": ["x", "twitter", "reply", "thread", "atomic"]
115+ },
116+117+ # X post tool
118+ {
119+ "func": post_to_x,
120+ "args_schema": PostToXArgs,
121+ "description": "Create a new standalone post on X (Twitter)",
122+ "tags": ["x", "twitter", "post", "create", "standalone"]
123 },
124125 # X search tool