Docs/Models & AI

User Guide · 2.4.1 Release

Tools Center and web search

Web search, MCP, JavaScript execution, and assistant switches

Read Markdown
On this page

What is Tool Services?#

Tool Services (Tools Center) lists built-in tools that models can invoke. When enabled, a model can call tools as needed to gather additional information or perform actions.

Web search#

Web search comes in two types:

  • External search services: Choose and configure a search service in Tool Services first with its corresponding API key or parameters. Once configured, models that support tool calling can invoke search tools when needed to retrieve information before answering.
  • Built-in search: Provided directly by the model provider without using external search services like Exa or Tavily configured in Tool Services. "Built-in search" appears in the chat input's web search menu only when both the current provider API and the current model support built-in web search. You can also adjust a model's "Built-in web search" capability toggle on the model edit page.

Available external search services#

  • Exa: An AI-focused search API suited for supplying webpage results and summaries to models. Website: https://exa.ai
  • Tavily: A search API built for AI agents—simple to configure and well-suited for general web retrieval. Website: https://www.tavily.com
  • DeepSeek: Uses a DeepSeek API key to provide web search and Markdown page extraction, with support for configuring a separate search API key and Base URL. Docs: https://api-docs.deepseek.com/zh-cn/guides/search/
  • Firecrawl: Focused on webpage crawling, parsing, and content extraction—ideal for tasks that require reading full webpage text. Website: https://www.firecrawl.dev
  • Parallel: A web search and content extraction API built for AI agents, supporting dense excerpts and webpage Markdown extraction. Website: https://parallel.ai
  • Metaso: Tailored for Chinese web search scenarios (Mainland China ecosystem); request keys and monitor usage in the search API console. Portal: https://metaso.cn/search-api/playground

Most of these services offer a free tier that is usually sufficient for light personal use. Exact quotas, reset cycles, and billing terms may change—check each provider's console and latest pricing page.

MCP tools#

Trailing slashes in service URLs are preserved—for some servers, /mcp/ and /mcp are different endpoints. If an older app version trimmed the trailing slash when saving, restore the exact URL given by the service provider and refresh tools. Zero discovered tools, authentication failures, and invalid responses produce distinct messages; an HTTP success status does not guarantee usable tools were found.

Open Settings → Assistant capabilities → Tool Services → MCP → Add to enter the service URL, authentication method, and request headers manually. If you already have a configuration, tap the Import configuration icon in the top-right corner and paste it. Select a service, tap Fill form, review the fields, and tap the checkmark in the top-right corner to save.

JSON import supports both root-level mcpServers (Claude, etc.) and servers (Cursor / VS Code Copilot, etc.); common aliases such as type=http, sse, and streamable-http are recognized; you can also omit type and let the app infer the transport from url or command. Standard remote MCP configurations (such as Huawei's) can generally be pasted and imported directly.

Three connection modes are supported:

  • Streamable HTTP: Most remote services, typically ending with /mcp.
  • Legacy SSE: URLs ending with /sse connect via SSE automatically—SSE endpoints from MCP hubs such as ModelScope and Alibaba Cloud Bailian work directly.
  • Local execution (stdio): Enter launch commands such as uvx mcp-server-time or npx -y <package>@<version> in the address field, or paste JSON containing command, args, and env. Downloading packages for the first time requires internet access, and API keys needed by the service go in Environment variables. Services that depend on desktop apps, Docker, or OS subprocesses must run on a computer or server. Services that only offer a desktop connector or pairing flow should be used on a computer as instructed by the provider.

Inside an MCP Server's details page, the top overflow menu provides refresh, edit, and delete actions. The tool list supports searching by name or description. On the right side of each tool, Ask | Allow decides whether the app asks before invoking it, while the toggle switch controls whether the tool is enabled. Tapping Always Allow for a tool in chat takes effect immediately without leaving and reopening the page. Permissions for all MCP services and tools can also be reviewed and changed together under Tool Services → Permissions.

Enabling MCP per conversation in chat: open Tools → Choose Tools in the input toolbar and toggle a service on under MCP services · This chat only. The app connects immediately and fetches its tool list, showing Connected · N tools on the card; if connecting fails, the card shows the reason along with buttons such as Retry connection. Only services enabled for the current chat are connected, and enabled services appear at the top.

To prevent oversized tool lists from slowing down rendering, persistence, or request payloads, a single MCP Server retains at most 256 tools; among newly discovered tools, only the first 64 are enabled by default, and the rest can be enabled manually on the details page.

OAuth authorization and connection recovery#

When a service requires web sign-in authorization, select OAuth as the authentication method, fill in Client ID, scopes, and other fields required by the provider, and start the authorization flow from the app. A pre-registered Client ID and a client metadata URL are separate settings: if both are entered, the pre-registered ID takes precedence; if both are blank, availability depends on whether the service supports dynamic client registration. Do not guess these values.

After authorization completes, the app reuses valid tokens; when permissions are insufficient or authorization expires, re-authorize as prompted. Connection failures retain your service configuration so you can correct the URL, authentication, or network and retry. Successful authorization does not automatically grant permission to run all tools—you still configure tool switches and Ask | Allow permissions. Optional MCP extensions such as tasks, sampling, or interactive forms are not guaranteed to be supported.

Common built-in tools and what they do#

  • File operations: Directly create, read, precisely edit, append, merge, copy, move, and delete workspace files, and list or extract ZIP archives on demand. TXT/Markdown files can be merged locally in a specified order without making the model output the full text again. Use edit when changing just one passage, and copy files without reading and rewriting all content. Model tool name: file_operations.
  • Code Workbench: Runs Python by default—ideal for generating and modifying Word / Excel / PowerPoint / PDF files, filtering and summarizing spreadsheets, data analysis, plotting charts, and batch file processing; common document libraries are built in and work offline. Command lines written in skills (such as python scripts/x.py or pip install) run in Bash. JavaScript is used only when host-managed provider keys are required or inside Incognito Chat. Model tool name: run_code (legacy eval_javascript configs remain compatible).
  • Network requests: Access web services and upload or download files; model tool name: http_request. Prefer it for single network calls; use JavaScript only when multi-step orchestration is needed. External hosts, LAN targets, or credential usage are confirmed per operation.
  • Generate Image: Create or edit images with your selected image model; images appear directly in chat and save to the conversation's outputs/ folder so subsequent web or document tasks can reference them directly. Switch image models via Switch model on this row—this shares the same setting as the Image Generation workspace.
  • Ask User: When the AI needs a decision or more info from you, a question card takes over the input area directly, supporting single or multiple questions (swipe left/right to navigate). Submit anytime once answered, and filled answers are preserved if you leave the chat. Question types cover single-choice, multi-choice, dropdown (for longer option lists), sliders (for duration, quantity, ratio, etc.), and free-text input; you can answer partially or skip the entire round. Slider responses also inform the AI whether you adjusted the default value. Model tool name: ask_user.

Workspace and file delivery#

The current session accesses files through the /workspace virtual workspace, and outputs written to outputs/ appear as attachments you can open and save. Input attachments and enabled Skill resources are read-only; other conversations, the app database, and internal configuration are outside script access scope. Shared files can be read on demand; letting AI delete shared files is free and reuses File operations' Allow Once or Always Allow permission without extra confirmation once authorized. Saving into, creating directories in, or moving shared files requires Pro and user authorization; the shared root directory, input attachments, and Skill resources remain protected.

Creating a file only requires passing the body content and target path—the model does not need to repeat the full body in its chat reply first. After writing succeeds, it usually does not need to reread the file or re-list the directory to verify; it reads back only when validation or structural inspection is genuinely needed.

Inspecting tool call details#

Expand any tool call to switch between Changes / Content / Result / Arguments views as needed: common operations show structured summaries, code diffs, or error causes by default, and tapping JSON in the top-right corner switches to the full raw payload with sensitive fields automatically redacted. Viewing details or copying does not re-run the tool or create extra calls.

In follow-up turns, operations such as file writes are automatically condensed into concise receipts (preserving status, relative path, changes, and key errors) to save context window usage, while complete records and output attachments remain stored locally.

Code Workbench capabilities and limits#

The app bundles Python 3.12 with pandas, numpy, openpyxl, matplotlib (with CJK fonts configured), Pillow, and other common libraries. Document libraries like python-docx, python-pptx, and pypdf ship with the app, and other compatible libraries can be installed online. View installed packages under Settings → Connections & advanced → Runtimes.

Code Workbench's Bash supports node, npm install, and npx, enabling pure JavaScript CLIs such as Prettier and TypeScript. npm install skips lifecycle scripts. Packages needing native extensions, WebAssembly, or external processes should be run in another environment.

Bash is not a system shell—it simulates common commands inside the app: python, pip, git, ls, cat, grep, find, cp, mv, zip, curl, and more. Command substitution $(...), heredocs, and background jobs are not supported; unsupported commands prompt to use Python instead.

git supports cloning, committing, switching branches, merging, and pushing over HTTPS URLs only (SSH is not supported). Private repositories or pushes require embedding an access token in the URL (such as https://<token>@github.com/<user>/<repo>.git), and the token is saved in that repository's config. Symlinks in a repository become ordinary files containing the symlink target path.

JavaScript uses QuickJS with no web DOM or Node.js runtime; it is primarily for host-managed provider key API calls and computations inside Incognito Chat.

Word / Excel / PowerPoint generation does not require Pro. Enable Code Workbench in the current chat's tool picker and ask in natural language to create or modify files—python-docx, openpyxl, and python-pptx are pre-installed. For complete steps, examples, and limits, see "How do I generate Word, Excel and PowerPoint files?".

Networking, downloads, and cancellation#

If a script returns E_JS_TIMEOUT, first verify whether a loop is making progress rather than retrying unchanged or simply increasing the timeout. If Office file generation fails, check whether a complete output file already exists in the workspace before editing and retrying the script to avoid duplicate generation; diagnostic info helps the model pinpoint slow steps.

JavaScript outbound network targets require explicit authorization; Network requests and Code Workbench share file and network checks. TLS verification is enforced and redirects are not followed automatically; if a redirect URL is returned, the new destination must be confirmed separately. Save large responses to a file first and read by range instead of downloading repeatedly to inspect details.

Code execution enforces time, memory, and output limits. Tapping Stop cancels the current execution, and uncommitted files do not overwrite existing originals; check which files changed before retrying.

Delegate to Expert: connect model services right from normal chat#

Expert delegation is off by default. Enable Delegate to Expert under Tools → Choose Tools → Basics in the input bar (applies to the current chat only), or enable it for an assistant under Assistants → Edit assistant → Tools → Built-in tools → Advanced management. Once enabled, you can simply say in regular chat: "Connect service X for me," "Configure this image API as a usable model," or "Set up balance queries for this provider." The main assistant hands the job to a built-in expert: the Provider Management Expert adds and edits providers, models, and balance queries, while the Image Recipe Expert turns image APIs into selectable models in the workspace. When done, the expert passes results back to the main assistant, which explains how to use them.

A task card appears in chat showing what the expert is doing; tap it to inspect the full process, or tap Stop while running to stop only that expert. The expert uses the current chat's model, and usage is counted toward this conversation.

When it asks for confirmation:

  • Brand-new setup runs uninterrupted: Creating a new provider—and adding models, saving an image recipe, or setting up balance queries on that newly created provider—completes directly.
  • Modifying existing configs asks first: Editing or deleting existing providers, models, or recipes, or saving a recipe or balance query onto an existing provider, displays a confirmation panel detailing every change (highlighting old and new URLs when an API address changes).
  • Live test image generation needs your consent: Only when you say in chat that testing is okay will the expert generate a real test image, limited to one successful test image per task.

Configurations already saved by an expert are not undone if you stop the task, regenerate, or delete messages; to remove them, go to Settings → Models & usage → Provider Management. Expert delegation is not available in Incognito Chat. When keys are passed to an expert as local references, the expert never sees plaintext values; however, if you pasted a key directly in chat or the assistant read it from a webpage, it has already been sent to your active model's provider—reset that key on the provider's platform afterward.

Assistant configuration and per-chat tool switches#

Tool availability depends on both assistant defaults and current session selections. Set an assistant's default tool baseline for new chats under Assistants → Edit assistant → Tools; Tools → Choose Tools in the chat toolbar mirrors the assistant's built-in tool catalog exactly, allowing you to toggle built-in tools and MCP Servers freely for the current chat without overwriting assistant defaults. Code Workbench must be explicitly checked in the current chat—enabling a skill does not automatically turn it on.

In the assistant editor, you can switch between Built-in tools, MCP services, and Mounted folders. Built-in tools are grouped into Everyday tools, Creative & web, Location & calendar, and Advanced management, with Everyday tools expanded by default. MCP counts the servers enabled on this assistant and displays each server's tool count beneath it.

Everyday tools includes Get time, Ask User, View images, Resource catalog, File operations, and Code Workbench. New assistants enable this group by default, and you can tap Enable recommended anytime to complete this group while keeping any other enabled tools intact. The Edits badge indicates a tool may modify files, calendar events, or other data. Browser and Remote Connections require Pro.

The chat page groups tools into Basics, Files, Create, Web & device, and Advanced, mapping 1-to-1 with assistant tools (including Get time, Ask User, Find skills, Manage Skills, and Manage Knowledge Bases). Find skills (find_skills) is enabled by default only in the built-in Cube App Guide and is no longer forced onto regular chats—check it whenever needed; turning off all tools for a turn omits all built-in tool definitions and tool-usage rules. Once all recommended tools are enabled, the quick-enable entry collapses in chat. Tapping a tool's description opens the corresponding image model settings, browser login, or server management screen.

With Manage Skills or Manage Knowledge Bases enabled, the model can create/update skills or maintain knowledge base notes directly in chat: Manage Skills writes still require confirming a draft card; Knowledge Base writes ask by default and can be configured per operation with global defaults and per-assistant overrides under Tool Services → Permissions. Unless Always Allow is granted, you can edit content or cancel on the draft card. Read-only actions in Manage Knowledge Bases (listing knowledge bases, reading notes) never interrupt you.

For asynchronous parallel subagents, named assistant delegation, and the toolbar Subagents chip, see the next article, "How do parallel subagents and assistant delegation work?".

API keys and assistant environment variables#

After saving values under Assistants → Edit assistant → Prompt → Variables, Network requests can request authorized host-side injection of specified variables, or request using a provider's stored credentials. Credentials are bound to the current target and attached to the request by the app—never given to scripts or the model in plaintext. JavaScript's process.env is empty by default, discontinuing legacy direct secret reads. Never paste credentials into message text, scripts, output files, or logs.

Notes#

Whether external search services, MCP tools, and Code Workbench are usable depends on whether the active model supports tool calling, your tool configuration, and the current session's selections. Built-in search does not require general tool-calling support, but requires the model's "Built-in web search" capability to be enabled and supported by the provider's API itself.