- 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
···2020from tools.whitewind import create_whitewind_blog_post, WhitewindPostArgs
2121from tools.ack import annotate_ack, AnnotateAckArgs
2222from tools.webpage import fetch_webpage, WebpageArgs
2323-from tools.x_post import post_to_x, PostToXArgs
2424-from tools.x_thread import add_post_to_x_thread, XThreadPostArgs
25232624letta_config = get_letta_config()
2725logging.basicConfig(level=logging.INFO)
···116114 "args_schema": WebpageArgs,
117115 "description": "Fetch a webpage and convert it to markdown/text format using Jina AI reader",
118116 "tags": ["web", "fetch", "webpage", "markdown", "jina"]
119119- },
120120- {
121121- "func": post_to_x,
122122- "args_schema": PostToXArgs,
123123- "description": "Create a new standalone post on X (Twitter)",
124124- "tags": ["x", "twitter", "post", "create"]
125125- },
126126- {
127127- "func": add_post_to_x_thread,
128128- "args_schema": XThreadPostArgs,
129129- "description": "Add a single post to the current X reply thread atomically",
130130- "tags": ["x", "twitter", "reply", "thread", "atomic"]
131117 },
132118]
133119
+11
register_x_tools.py
···2323# Import X thread tool
2424from tools.x_thread import add_post_to_x_thread, XThreadPostArgs
25252626+# Import X post tool
2727+from tools.x_post import post_to_x, PostToXArgs
2828+2629# Import X search tool
2730from tools.search_x import search_x_posts, SearchXArgs
2831···109112 "args_schema": XThreadPostArgs,
110113 "description": "Add a single post to the current X reply thread atomically",
111114 "tags": ["x", "twitter", "reply", "thread", "atomic"]
115115+ },
116116+117117+ # X post tool
118118+ {
119119+ "func": post_to_x,
120120+ "args_schema": PostToXArgs,
121121+ "description": "Create a new standalone post on X (Twitter)",
122122+ "tags": ["x", "twitter", "post", "create", "standalone"]
112123 },
113124114125 # X search tool