All Available Tools for Grok AI
October 23, 2025
Overview
This document provides a descriptive overview of all available tools that can be
used with Grok, built by xAI. These tools enable advanced capabilities such as
code execution, web browsing, searching, and analyzing content on X (formerly
Twitter). Note that these tools are integrated into Grok’s functionality and are
accessible without additional cost beyond the platform’s standard access.
1 Code Execution
Description: This is a stateful code interpreter tool. It functions as a REPL (Read
Eval Print Loop) environment, preserving results from previous executions. It
allows running Python code in a controlled setting with access to various pre-
installed libraries for data processing, math, physics, biology, chemistry, finance,
crypto, game development, multimedia, and machine learning.
Key Features:
• Environment: Python 3.12.3
• Libraries: tqdm, ecdsa, numpy, scipy, pandas, matplotlib, openpyxl, sympy,
mpmath, statsmodels, PuLP, astropy, qutip, control, biopython, pubchempy,
dendropy, rdkit, pyscf, polygon, coingecko, pygame, chess, mido, midiutil, net-
workx, torch, snappy
• Internet Access: Limited to proxies for polygon and coingecko APIs (no gen-
eral internet or package installation)
• File Interaction: Can read attached files directly (e.g., open(‘[Link]’, ‘r’))
• Tips: Ensure proper indentation; avoid code that terminates the session; use
pandas/openpyxl for efficient file reading.
Action: code_execution
Arguments:
• code (string, required): The Python code to execute.
1
2 Browse Page
Description: Fetches and processes content from any website URL using an LLM
summarizer. The summarizer extracts or summarizes based on custom instruc-
tions, making it ideal for targeted information retrieval.
Key Features:
• Handles any valid URL.
• Instructions guide the summarizer for focused outputs (e.g., broad overviews
or specific details).
• Supports chaining: Summaries can include next URLs to browse.
Action: browse_page
Arguments:
• url (string, required): The webpage URL.
• instructions (string, required): Prompt for the summarizer (explicit, self-
contained, dense).
3 Web Search
Description: Performs a general web search, supporting advanced operators
like site:[Link] for refined results.
Key Features:
• Returns up to 30 results (default 10).
• Useful for broad or specific queries.
Action: web_search
Arguments:
• query (string, required): The search query.
• num_results (integer, optional, default 10, max 30): Number of results.
4 X Keyword Search
Description: Advanced search for X posts using keyword-based queries with
operators for precise filtering.
Key Features:
• Operators: Keywords (AND implied), OR, ”exact phrase”, * wildcard, +exact, -
exclude, from:user, to:user, @user, geocode, time filters (since/until), post types
(replies, self_threads, quotes, etc.), engagement (min_retweets, etc.), media/filters.
• Sorting: Top (default) or Latest.
• Grouping with parentheses.
Action: x_keyword_search
Arguments:
2
• query (string, required): Advanced search query.
• limit (integer, optional, default 10): Number of posts.
• mode (string, optional, default ”Top”): ”Top” or ”Latest”.
5 X Semantic Search
Description: Retrieves X posts relevant to a semantic query, using meaning-
based matching rather than exact keywords.
Key Features:
• Filters by date, usernames (include/exclude), and minimum relevancy score.
• Ideal for conceptual searches.
Action: x_semantic_search
Arguments:
• query (string, required): Semantic search query.
• limit (integer, optional, default 10): Number of posts.
• from_date (string/null, optional): Start date (YYYY-MM-DD).
• to_date (string/null, optional): End date (YYYY-MM-DD).
• exclude_usernames (array/null, optional): Usernames to exclude.
• usernames (array/null, optional): Usernames to include.
• min_score_threshold (number, optional, default 0.18): Relevancy threshold.
6 X User Search
Description: Searches for X users based on a name or account query.
Key Features:
• Returns user profiles matching the query.
Action: x_user_search
Arguments:
• query (string, required): Name or account to search.
• count (integer, optional, default 3): Number of users.
7 X Thread Fetch
Description: Retrieves the content of an X post along with its context, including
parent posts and replies.
Key Features:
• Provides full thread context for a given post ID.
Action: x_thread_fetch
Arguments:
3
• post_id (integer, required): The post ID.
8 View Image
Description: Analyzes an image from a given URL, describing its contents.
Key Features:
• Supports any image URL.
Action: view_image
Arguments:
• image_url (string, required): The image URL.
9 View X Video
Description: Views and describes interleaved frames and subtitles from a video
hosted on X.
Key Features:
• URL must be a direct link to an X-hosted video (obtainable from X tool media
lists).
Action: view_x_video
Arguments:
• video_url (string, required): The X video URL.
10 Notes
• These tools are part of Grok’s free AI capabilities, accessible via the standard
interface on platforms like [Link], [Link], and mobile apps.
• Usage is subject to platform quotas; higher limits available with subscriptions.
• For more details on xAI products, visit [Link]
0
This document was generated on October 23, 2025.