You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**max_results**: Maximum number of results to return.
22
+
Get the current time in ISO-8601 format.
58
23
59
-
## Search Tools
24
+
-**tz_name**: Optional timezone name (e.g., 'America/New_York'). Defaults to UTC.
60
25
61
-
### `semantic_search(query: str, top_k: int = 5) -> List[Dict]`
26
+
##Code Execution Tools
62
27
63
-
Perform a semantic search (currently a placeholder implementation).
28
+
LLMS includes a suite of tools for executing code in various languages within a sandboxed environment. These tools are designed to allow the agent to run scripts, perform calculations, and verify logic safely.
64
29
65
-
-**query**: The search query string.
66
-
-**top_k**: Number of top results to return.
30
+
## File System Tools
67
31
68
-
## Math & Logic
32
+
The built-in [computer](https://github.com/ServiceStack/llms/tree/main/llms/extensions/computer) extension [filesystem.py](https://github.com/ServiceStack/llms/blob/main/llms/extensions/computer/filesystem.py) tools provide a native Python implementation of Anthropic's node.js [Filesystem MCP Server](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem) tools:
69
33
70
-
### `calc(expression: str) -> str`
34
+
*`read_text_file` - Read complete contents of a file as text
*`write_file` - Create new file or overwrite existing (exercise caution with this)
38
+
*`edit_file` - Make selective edits using advanced pattern matching and formatting
39
+
*`create_directory` - Create new directory or ensure it exists
40
+
*`list_directory` - List directory contents with [FILE] or [DIR] prefixes
41
+
*`list_directory_with_sizes` - List directory contents with [FILE] or [DIR] prefixes, including file sizes
42
+
*`move_file` - Move or rename files and directories
43
+
*`search_files` - Recursively search for files/directories that match or do not match patterns
44
+
*`directory_tree` - Get recursive JSON tree structure of directory contents
45
+
*`get_file_info` - Get detailed file/directory metadata
46
+
*`list_allowed_directories` - List all directories the server is allowed to access
71
47
72
-
Evaluate a mathematical expression. Supports arithmetic, comparison, boolean operators, and common math functions.
48
+
<Screenshotsrc="/img/tools/tool-files.webp" />
73
49
74
-
-**expression**: The mathematical expression string (e.g., `sqrt(16) + 5`).
50
+
## Computer Use
75
51
76
-
## Utilities
52
+
The built-in [computer](https://github.com/ServiceStack/llms/tree/main/llms/extensions/computer) extension transforms AI agents into autonomous computer operators. Based on [Anthropic's computer use tools](https://github.com/anthropics/anthropic-quickstarts/tree/main/computer-use-demo), it enables agents to see your screen, control the mouse and keyboard, execute shell commands, and edit files - just like a human sitting at the computer.
LLMS includes a suite of tools for executing code in various languages within a sandboxed environment. These tools are designed to allow the agent to run scripts, perform calculations, and verify logic safely.
65
+
See the [Computer Use](/docs/extensions/computer_use) docs for complete usage details.
Copy file name to clipboardExpand all lines: content/docs/v3.mdx
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -525,24 +525,6 @@ For [Omarchy](https://omarchy.org) users, the [Omarchy MCP](/docs/mcp/omarchy_mc
525
525
526
526
The built-in [core_tools](https://github.com/ServiceStack/llms/blob/main/llms/extensions/core_tools/__init__.py) extension provides essential functionality for LLMs to interact with their environment, perform calculations, and manage persistent data.
527
527
528
-
### Memory Tools
529
-
530
-
Functions for persistent key-value storage.
531
-
532
-
*`memory_read` - Read a value from persistent memory.
533
-
*`memory_write` - Write a value to persistent memory.
534
-
535
-
### File System Tools
536
-
537
-
All file system operations are restricted to the current working directory for safety.
538
-
539
-
*`read_file` - Read a text file from disk.
540
-
*`write_file` - Write text to a file (overwrites existing content).
541
-
*`list_directory` - List directory contents including file names, sizes, and modification times.
542
-
*`glob_paths` - Find files and directories matching a glob pattern.
543
-
544
-
<Screenshotsrc="/img/tools/tool-files.webp" />
545
-
546
528
### Utilities
547
529
548
530
*`get_current_time` - Get the current time in ISO-8601 format.
@@ -577,9 +559,29 @@ LLMS includes a suite of tools for executing code in various languages within a
577
559
'Run C#': '/img/tools/tool-csharp.webp',
578
560
}} />
579
561
562
+
## File System Tools
563
+
564
+
The built-in [computer](https://github.com/ServiceStack/llms/tree/main/llms/extensions/computer) extension [filesystem.py](https://github.com/ServiceStack/llms/blob/main/llms/extensions/computer/filesystem.py) tools provide a native Python implementation of Anthropic's node.js [Filesystem MCP Server](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem) tools which allow LLMs to interact with the local file system in a safe and controlled manner enabling reading, writing, and searching of allowed files and directories only.
565
+
566
+
*`read_text_file` - Read complete contents of a file as text
*`write_file` - Create new file or overwrite existing (exercise caution with this)
570
+
*`edit_file` - Make selective edits using advanced pattern matching and formatting
571
+
*`create_directory` - Create new directory or ensure it exists
572
+
*`list_directory` - List directory contents with [FILE] or [DIR] prefixes
573
+
*`list_directory_with_sizes` - List directory contents with [FILE] or [DIR] prefixes, including file sizes
574
+
*`move_file` - Move or rename files and directories
575
+
*`search_files` - Recursively search for files/directories that match or do not match patterns
576
+
*`directory_tree` - Get recursive JSON tree structure of directory contents
577
+
*`get_file_info` - Get detailed file/directory metadata
578
+
*`list_allowed_directories` - List all directories the server is allowed to access
579
+
580
+
<Screenshotsrc="/img/tools/tool-files.webp" />
581
+
580
582
## Computer Use
581
583
582
-
The built-in [computer_use](https://github.com/ServiceStack/llms/tree/main/llms/extensions/computer) extension transforms AI agents into autonomous computer operators. Based on [Anthropic's computer use tools](https://github.com/anthropics/anthropic-quickstarts/tree/main/computer-use-demo), it enables agents to see your screen, control the mouse and keyboard, execute shell commands, and edit files - just like a human sitting at the computer.
584
+
The built-in [computer](https://github.com/ServiceStack/llms/tree/main/llms/extensions/computer) extension transforms AI agents into autonomous computer operators. Based on [Anthropic's computer use tools](https://github.com/anthropics/anthropic-quickstarts/tree/main/computer-use-demo), it enables agents to see your screen, control the mouse and keyboard, execute shell commands, and edit files - just like a human sitting at the computer.
583
585
584
586
This unlocks powerful capabilities that traditional API-based tools cannot achieve:
0 commit comments