Tool Kernel
Tool Kernel
Section titled “Tool Kernel”LingXiao has 100+ built-in tools covering the full engineering chain. All tools are registered and managed through the ToolRegistry, supporting permission evaluation, parallel execution, and preflight checks.
Tool Categories
Section titled “Tool Categories”File System
Section titled “File System”File read/write, directory browsing, glob search, incremental editing:
file_read: Read file contents, supports line rangefile_create: Create or overwrite files, atomic writesstructured_patch: Incremental modification, supports search/replace, line range replacement, insertionlist_dir: Directory tree browsingglob: File pattern matching search
Code Search
Section titled “Code Search”High-performance full-text search based on ripgrep:
code_search: Regex search with file pattern filtering- Search path scoping and timeout control
- Result pagination and offset continuation
Shell Execution
Section titled “Shell Execution”Safe command-line execution environment:
shell: Foreground/background execution, sandbox isolation, network mode control- Working directory and environment variable support
- Background tasks persist across tool calls
Python Execution
Section titled “Python Execution”Embedded Python code execution:
python_exec: Execute Python code snippets, returns stdout- Timeout and output size limits
Browser Automation
Section titled “Browser Automation”Full browser operation capabilities:
browser_action: Navigate, click, fill forms, wait for elements, read text, execute JSbrowser_visual_verify: Page verification, assertions + screenshotsscreenshot: Web page screenshotsvisual_contact_sheet: Multi-image collage overviewocr: Local OCR text recognition (tesseract.js, supports Chinese + English)
Office Suite
Section titled “Office Suite”Document generation and editing:
generate_pptx/edit_pptx/inspect_pptx: PPTX generation/editing/inspectiongenerate_docx: DOCX document generationgenerate_html_presentation/generate_html_document: HTML format output
Communication
Section titled “Communication”Network communication tools:
web_fetch: Web page fetching, auto-switches between fetch/browser renderingweb_search: Search engine queries with advanced syntaxhttp_request: HTTP requests supporting all HTTP methods
Persistent Memory
Section titled “Persistent Memory”memory: Save, search, read, and delete long-term memory- FTS5 + BM25 full-text search support
MCP Integration
Section titled “MCP Integration”mcp: Unified MCP entry point for discovering and calling MCP tools/resources/prompts
ToolRegistry
Section titled “ToolRegistry”All tools are registered and managed through the ToolRegistry:
find_tools: Search tools by name, description, category, tiertool_preflight: Call preflight, validates parameter schema and preconditionsparallel_read_batch: Parallel read-only batch processing, safe tools auto-parallelize
Permission System
Section titled “Permission System”Tool calls follow a 9-layer evaluation chain:
deny→allow→ask→yolo→always-allowed→network→hardened→strict→default allow
Permission Levels
Section titled “Permission Levels”| Level | Description |
|---|---|
deny | Explicitly denied, cannot be overridden |
allow | Explicitly allowed |
ask | Ask user for confirmation |
yolo | Skip all confirmations (dangerous) |
always-allowed | Permanently allowed |
network | Network access permission |
hardened | Hardened mode restriction |
strict | Strict mode restriction |
default allow | Allowed by default |
Tool Capability Tiers
Section titled “Tool Capability Tiers”Tools are classified into four capability tiers:
| Tier | Description | Examples |
|---|---|---|
read | Read-only tools | file_read, code_search, list_dir |
write | Write tools | file_create, structured_patch |
execute | Execution tools | shell, python_exec |
compute | Compute tools | node_repl, parallel_read_batch |