← AI PulseSep 7, 2026

Wire · news · Multi-source brief

xAI Introduces Collections Search and Code Execution Tools for Grok

xAI has released new tools for its Grok model, including a collections search tool for knowledge base retrieval and a code execution tool for real-time Python code execution.

By Illumora Editorial

Source · Sep 7, 2026, 10:28 PM · On Illumora · Sep 7, 2026, 10:53 PM

Media from the primary source — shown here so you can stay on Illumora.

Synthesized from multiple allowlisted primaries on the same event. Lanes →

Brief drafted by Illumora’s editorial model from the linked primary source. Ops desk reviews flagged pieces. How we write →

Read the source →xAI Docs — Collections Search Tool | SpaceXAI Docs
Save

xAI has introduced a collections search tool designed to enable Grok to search through uploaded knowledge bases, referred to as collections. This tool facilitates the retrieval of relevant information from documents to provide more accurate and contextually relevant responses. Additionally, xAI has released a code execution tool that allows Grok to write and execute Python code in real-time.

Key Points

  • The collections search tool enables Grok to search uploaded knowledge bases (collections) for relevant information.
  • This tool is designed to retrieve information from documents to provide more accurate and contextually relevant responses.
  • The code execution tool allows Grok to write and execute Python code in real-time.
  • The code execution tool expands Grok's capabilities beyond text generation, enabling precise calculations and complex data analysis.
  • Both tools are available across multiple SDKs and APIs, and are supported in all Responses API compatible SDKs.
  • The Collections API allows programmatic management of documents and collections.
  • Grok 4.6 is the model associated with these new capabilities.

Context

According to xAI, the collections search tool is particularly effective for analyzing complex documents such as financial reports, legal contracts, or technical documentation. It allows Grok to autonomously search multiple documents and synthesize information to answer sophisticated analytical questions. The code execution tool, as stated by xAI, enables Grok to perform precise calculations, complex data analysis, statistical computations, and solve mathematical problems that would be difficult with text alone. The Collections API, also from xAI, provides programmatic access for managing documents and collections.

Why It Matters

These new tools enhance Grok's ability to interact with and analyze proprietary data, offering builders increased capability for applications requiring detailed document analysis, precise computation, and integration with internal knowledge bases.

What To Do

  • Review the xAI documentation for the collections search tool to understand its application in knowledge base integration.
  • Investigate the code execution tool documentation to explore its use in mathematical and data analysis tasks.
  • Compare the naming conventions for these tools across different SDKs and APIs to ensure proper integration.
  • Examine the Collections API reference for programmatic management of documents and collections.