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
@@ -11,23 +11,24 @@ import { BlockInfoCard } from "@/components/ui/block-info-card"
11
11
/>
12
12
13
13
{/* MANUAL-CONTENT-START:intro */}
14
-
The File block is a built-in Sim block for working with files stored in the workspace, or fetched from external URLs. It handles reading, writing, appending, compressing, decompressing, and sharing files as part of a workflow.
14
+
The File block is a built-in Sim block for working with files stored in the workspace, or fetched from external URLs. It handles reading, searching, writing, appending, compressing, decompressing, and sharing files as part of a workflow.
15
15
16
16
With the File block, you can:
17
17
18
18
-**Read and extract content**: Load workspace file objects and extract their text content
19
+
-**Search workspace content**: Find literal text across indexed active workspace files with bounded line-level results
19
20
-**Fetch from URLs**: Retrieve and parse files from external URLs with custom headers
20
21
-**Write and append**: Create new workspace files or append content to existing ones
21
22
-**Compress and decompress**: Bundle files into a .zip archive or extract an archive into the workspace
22
23
-**Manage sharing**: Enable or disable a public share link for a file, with public, password, email, or SSO access modes
23
24
24
-
In Sim, the File block allows your agents to read and extract text from workspace files, fetch and parse files from URLs, write or append content to files, bundle files into or out of .zip archives, and control public sharing access for a file—all programmatically as steps in a workflow. This makes it possible to move file content into and out of a workflow, package outputs for download or transfer, and expose files to external users through a managed share link.
25
+
In Sim, the File block allows your agents to search, read, and extract text from workspace files, fetch and parse files from URLs, write or append content to files, bundle files into or out of .zip archives, and control public sharing access for a file—all programmatically as steps in a workflow. This makes it possible to explore workspace content, move file content into and out of a workflow, package outputs for download or transfer, and expose files to external users through a managed share link.
25
26
{/* MANUAL-CONTENT-END */}
26
27
27
28
28
29
## Usage Instructions
29
30
30
-
Read workspace file objects, extract the text content of files, fetch and parse files from URLs with optional headers, write new workspace files, append content to existing files, compress files into a .zip archive, extract a .zip archive into the workspace, or manage the public share link for a file.
31
+
Read workspace file objects, search indexed text across all active workspace files, extract the text content of files, fetch and parse files from URLs with optional headers, write new workspace files, append content to existing files, compress files into a .zip archive, extract a .zip archive into the workspace, or manage the public share link for a file.
31
32
32
33
33
34
@@ -67,6 +68,35 @@ Extract the text content of one or more workspace files from selected file objec
67
68
| --------- | ---- | ----------- |
68
69
|`contents`| array | Array of file text contents, one entry per file in input order |
69
70
71
+
### File Search
72
+
73
+
Search indexed text across active workspace files using literal smart-case substring matching.
74
+
75
+
#### Input
76
+
77
+
| Parameter | Type | Required | Description |
78
+
| --------- | ---- | -------- | ----------- |
79
+
|`query`| string | Yes | Literal text to find \(3-512 characters\). Uppercase Unicode letters make matching case-sensitive. |
80
+
|`maxResults`| number | No | Hard result cap configured by the workflow builder \(1-200, default 50\). |
81
+
82
+
#### Output
83
+
84
+
| Parameter | Type | Description |
85
+
| --------- | ---- | ----------- |
86
+
|`results`| array | Matching logical lines with their workspace file ID and 1-based line number. |
0 commit comments