Field names are shown in Go style. Rust uses snake_case, AssemblyScript uses camelCase or snake_case depending on the type.
File System
DirEntry
Returned by fs_ls / FsLs / fsLs.
| Field | Type | Condition | Description |
|---|
Name | string | always | File or directory name |
Size | int64 | always | Size in bytes (0 for directories) |
IsDir | bool | always | Is a directory |
ModTime | int64 | long=true | Unix timestamp (seconds) |
Mode | uint32 | long=true | Permission bits |
ModeStr | string | long=true | Human-readable, e.g. "drwxr-xr-x" |
TextFileContent
Returned by fs_read_lines / FsReadLines / fsReadLines.
| Field | Type | Description |
|---|
Lines | []string | Lines of text |
TotalLines | int | Total lines in file |
Offset | int | Starting line offset |
IsTruncated | bool | Whether the result was truncated |
GrepFileMatch
Returned by fs_grep / FsGrep / fsGrep.
| Field | Type | Description |
|---|
Path | string | File path |
Matches | []GrepLineMatch | Matching lines |
GrepLineMatch
| Field | Type | Description |
|---|
LineNum | int | Line number (1-based) |
Line | string | Line content |
GlobEntry
Returned by fs_glob / FsGlob / fsGlob.
| Field | Type | Description |
|---|
Path | string | File path |
IsDir | bool | Is a directory |
Size | int64 | Size in bytes |
HTTP
| Field | Type | Description |
|---|
Name | string | Header name |
Value | string | Header value |
Cookie
| Field | Type | Description |
|---|
Name | string | Cookie name |
Value | string | Cookie value |
Domain | string | Domain |
Path | string | Path |
Expires | int64 | Expiration timestamp |
Secure | bool | Secure flag |
HTTPOnly | bool | HTTPOnly flag |
HttpResponse
| Field | Type | SDK | Description |
|---|
Status | int | all | HTTP status code |
Body | []byte | all | Response body |
Headers | []Header | Go, Rust | Response headers |
Cookies | []Cookie | Go, Rust | Set-Cookie values |
Shell
ShellExecResult
| Field | Type | Description |
|---|
Output | string | Combined stdout + stderr |
ExitCode | int | Process exit code (0 = success) |
Pid | int | Process ID (daemon mode, Go/AS only) |
LogFile | string | Log file path (daemon mode, Go/AS only) |
TCP
TcpRequestResult
Returned by tcp_request / TcpRequest / tcpRequest.
| Field | Type | Description |
|---|
Data | []byte | Response data |
Error | string | Error message (empty = success) |
System
SysInfoResult
| Field | Type | Description |
|---|
OS | string | Operating system (linux, darwin, windows) |
Arch | string | CPU architecture (amd64, arm64, riscv64) |
Hostname | string | Machine hostname |
NumCPU | int | Number of logical CPUs |
TimeNowResult
| Field | Type | Description |
|---|
Unix | int64 | Seconds since Unix epoch |
UnixNano | int64 | Nanoseconds since Unix epoch |
RFC3339 | string | Formatted time string |
Timezone | string | IANA timezone name |
Cluster
ClusterNodeInfo
| Field | Type | Description |
|---|
NodeID | string | Node identifier |
Role | string | master or slave |
Skills | []string | Skill IDs on the node |
Archive
ArchiveEntry
Returned by archive_list / ArchiveList / archiveList.
| Field | Type | Description |
|---|
Name | string | File path within archive |
Size | int64 | Uncompressed size in bytes |
IsDir | bool | Is a directory entry |