Skip to content

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.

File read/write, directory browsing, glob search, incremental editing:

  • file_read: Read file contents, supports line range
  • file_create: Create or overwrite files, atomic writes
  • structured_patch: Incremental modification, supports search/replace, line range replacement, insertion
  • list_dir: Directory tree browsing
  • glob: File pattern matching 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

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

Embedded Python code execution:

  • python_exec: Execute Python code snippets, returns stdout
  • Timeout and output size limits

Full browser operation capabilities:

  • browser_action: Navigate, click, fill forms, wait for elements, read text, execute JS
  • browser_visual_verify: Page verification, assertions + screenshots
  • screenshot: Web page screenshots
  • visual_contact_sheet: Multi-image collage overview
  • ocr: Local OCR text recognition (tesseract.js, supports Chinese + English)

Document generation and editing:

  • generate_pptx / edit_pptx / inspect_pptx: PPTX generation/editing/inspection
  • generate_docx: DOCX document generation
  • generate_html_presentation / generate_html_document: HTML format output

Network communication tools:

  • web_fetch: Web page fetching, auto-switches between fetch/browser rendering
  • web_search: Search engine queries with advanced syntax
  • http_request: HTTP requests supporting all HTTP methods
  • memory: Save, search, read, and delete long-term memory
  • FTS5 + BM25 full-text search support
  • mcp: Unified MCP entry point for discovering and calling MCP tools/resources/prompts

All tools are registered and managed through the ToolRegistry:

  • find_tools: Search tools by name, description, category, tier
  • tool_preflight: Call preflight, validates parameter schema and preconditions
  • parallel_read_batch: Parallel read-only batch processing, safe tools auto-parallelize

Tool calls follow a 9-layer evaluation chain:

LevelDescription
denyExplicitly denied, cannot be overridden
allowExplicitly allowed
askAsk user for confirmation
yoloSkip all confirmations (dangerous)
always-allowedPermanently allowed
networkNetwork access permission
hardenedHardened mode restriction
strictStrict mode restriction
default allowAllowed by default

Tools are classified into four capability tiers:

TierDescriptionExamples
readRead-only toolsfile_read, code_search, list_dir
writeWrite toolsfile_create, structured_patch
executeExecution toolsshell, python_exec
computeCompute toolsnode_repl, parallel_read_batch