Tools Reference
Complete reference for all built-in tools available in the Sekuire SDKs.
Tool Categories
| Category | Tools | Description |
|---|---|---|
| File Operations | 10 tools | Read, write, copy, move, delete files |
| Directory Operations | 8 tools | Create, list, remove directories |
| Network | 8 tools | HTTP requests, DNS, ping, downloads |
| Data Formats | 9 tools | JSON, CSV, YAML, XML, Base64 |
| Utilities | 7 tools | Calculator, UUID, dates, regex |
| System | 4 tools | Environment, platform info |
| Compliance | 5 tools | PII detection, encryption, audit |
| Agent Communication | 6 tools | A2A delegation, discovery |
File Operations
file_read
Read the contents of a file.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Path to the file |
encoding | string | No | File encoding (default: utf-8) |
const result = await tools.execute('file_read', { path: './data.txt' });
file_write
Write content to a file.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Path to the file |
content | string | Yes | Content to write |
encoding | string | No | File encoding (default: utf-8) |
await tools.execute('file_write', {
path: './output.txt',
content: 'Hello, World!'
});
file_append
Append content to an existing file.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Path to the file |
content | string | Yes | Content to append |
file_delete
Delete a file.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Path to the file |
file_move
Move or rename a file.
| Parameter | Type | Required | Description |
|---|---|---|---|
source | string | Yes | Source path |
destination | string | Yes | Destination path |
file_copy
Copy a file.
| Parameter | Type | Required | Description |
|---|---|---|---|
source | string | Yes | Source path |
destination | string | Yes | Destination path |
file_stat
Get file metadata (size, timestamps, permissions).
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Path to the file |
file_exists
Check if a file exists.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Path to check |
file_list
List files in a directory.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Directory path |
pattern | string | No | Glob pattern filter |
file_chmod
Change file permissions (Unix only).
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Path to the file |
mode | string | Yes | Permission mode (e.g., "755") |
Directory Operations
directory_list
List directory contents with details.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Directory path |
recursive | boolean | No | Include subdirectories |
directory_mkdir
Create a directory.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Directory path |
recursive | boolean | No | Create parent directories |
directory_rmdir
Remove an empty directory.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Directory path |
directory_rm_recursive
Remove a directory and all contents.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Directory path |
This operation is destructive and cannot be undone.
directory_exists
Check if a directory exists.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Directory path |
directory_move
Move a directory.
| Parameter | Type | Required | Description |
|---|---|---|---|
source | string | Yes | Source path |
destination | string | Yes | Destination path |
directory_copy
Copy a directory recursively.
| Parameter | Type | Required | Description |
|---|---|---|---|
source | string | Yes | Source path |
destination | string | Yes | Destination path |
directory_tree
Get a tree representation of directory structure.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Root directory |
depth | number | No | Max depth (default: 3) |
Network
web_search
Search the web using DuckDuckGo.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query |
num_results | number | No | Number of results (default: 5) |
http_request
Make an HTTP request (any method).
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Request URL |
method | string | No | HTTP method (default: GET) |
headers | object | No | Request headers |
body | object | No | Request body |
timeout | number | No | Timeout in ms |
http_post
Make an HTTP POST request.
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Request URL |
body | object | Yes | Request body |
headers | object | No | Request headers |
http_put
Make an HTTP PUT request.
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Request URL |
body | object | Yes | Request body |
headers | object | No | Request headers |
http_delete
Make an HTTP DELETE request.
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Request URL |
headers | object | No | Request headers |
download_file
Download a file from URL.
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | File URL |
destination | string | Yes | Local path to save |
dns_lookup
Perform DNS lookup.
| Parameter | Type | Required | Description |
|---|---|---|---|
hostname | string | Yes | Hostname to resolve |
type | string | No | Record type (A, AAAA, MX, etc.) |
ping
Ping a host to check connectivity.
| Parameter | Type | Required | Description |
|---|---|---|---|
host | string | Yes | Host to ping |
count | number | No | Number of pings (default: 4) |
Data Formats
json_parse
Parse JSON string to object.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | Yes | JSON string |
json_stringify
Convert object to JSON string.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | object | Yes | Object to stringify |
pretty | boolean | No | Pretty print (default: false) |
csv_parse
Parse CSV data to array of objects.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | Yes | CSV string |
headers | boolean | No | First row is headers (default: true) |
delimiter | string | No | Field delimiter (default: ",") |
csv_write
Convert array of objects to CSV.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | array | Yes | Array of objects |
headers | array | No | Column headers |
yaml_parse
Parse YAML string.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | Yes | YAML string |
xml_parse
Parse XML string.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | Yes | XML string |
base64_encode
Encode string to Base64.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | Yes | String to encode |
base64_decode
Decode Base64 string.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | Yes | Base64 string |
hash
Generate hash of data.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | Yes | Data to hash |
algorithm | string | No | Hash algorithm (sha256, md5, etc.) |
Utilities
calculator
Evaluate mathematical expressions safely.
| Parameter | Type | Required | Description |
|---|---|---|---|
expression | string | Yes | Math expression (e.g., "2 + 2 * 3") |
const result = await tools.execute('calculator', {
expression: '(100 * 1.15) / 2'
});
// Returns: 57.5
date_format
Format dates.
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | No | Date string (default: now) |
format | string | Yes | Output format |
timezone | string | No | Timezone |
generate_uuid
Generate a UUID v4.
No parameters required.
const uuid = await tools.execute('generate_uuid', {});
// Returns: "550e8400-e29b-41d4-a716-446655440000"
random_number
Generate a random number.
| Parameter | Type | Required | Description |
|---|---|---|---|
min | number | No | Minimum value (default: 0) |
max | number | No | Maximum value (default: 100) |
sleep
Pause execution for a duration.
| Parameter | Type | Required | Description |
|---|---|---|---|
ms | number | Yes | Milliseconds to sleep |
regex_match
Match text against a regular expression.
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to search |
pattern | string | Yes | Regex pattern |
flags | string | No | Regex flags (g, i, m) |
url_parse
Parse a URL into components.
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | URL to parse |
System
get_cwd
Get current working directory.
No parameters required.
get_platform
Get platform information (OS, arch, version).
No parameters required.
env_get
Get an environment variable.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Variable name |
env_set
Set an environment variable.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Variable name |
value | string | Yes | Variable value |
Compliance
get_verification_status
Check agent verification status in the Sekuire registry.
| Parameter | Type | Required | Description |
|---|---|---|---|
sekuire_id | string | No | Agent ID (default: current agent) |
include_details | boolean | No | Include detailed info |
This tool is automatically included in all agents for trust protocol compliance.
audit_log
Write an entry to the compliance audit log.
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | Yes | Action being logged |
resource | string | No | Resource affected |
metadata | object | No | Additional metadata |
pii_detect
Detect personally identifiable information in text.
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to scan |
types | array | No | PII types to detect |
Returns detected PII types: email, phone, SSN, credit card, etc.
encrypt_data
Encrypt sensitive data.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | Yes | Data to encrypt |
key | string | No | Encryption key (auto-generated if not provided) |
decrypt_data
Decrypt encrypted data.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | Yes | Encrypted data |
key | string | Yes | Decryption key |
Agent Communication
These tools enable agent-to-agent (A2A) communication.
search_agents
Search the registry for agents.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | No | Search query |
capabilities | array | No | Required capabilities |
verified_only | boolean | No | Only verified agents |
get_agent_info
Get detailed information about an agent.
| Parameter | Type | Required | Description |
|---|---|---|---|
sekuire_id | string | Yes | Agent's Sekuire ID |
invoke_agent
Invoke another agent's skill.
| Parameter | Type | Required | Description |
|---|---|---|---|
sekuire_id | string | Yes | Target agent ID |
skill | string | Yes | Skill to invoke |
input | object | Yes | Skill input parameters |
const result = await tools.execute('invoke_agent', {
sekuire_id: 'abc123...',
skill: 'analyze_data',
input: { data_url: 'https://example.com/data.csv' }
});
agent_discovery
Discover agents with specific capabilities.
| Parameter | Type | Required | Description |
|---|---|---|---|
capabilities | array | Yes | Required capabilities |
min_reputation | number | No | Minimum reputation score |
agent_delegation
Delegate a task to another agent.
| Parameter | Type | Required | Description |
|---|---|---|---|
task | string | Yes | Task description |
sekuire_id | string | No | Specific agent (auto-select if not provided) |
timeout_ms | number | No | Task timeout |
agent_status
Check the status of a delegated task.
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | string | Yes | Task ID from delegation |
Google Workspace
google_docs_create
Create a Google Doc (requires Google OAuth).
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Document title |
content | string | No | Initial content |
Tool Compliance Levels
Each tool has a compliance level that determines its access requirements:
| Level | Description | Approval Required |
|---|---|---|
public | Safe for general use | No |
internal | Internal operations | Policy-dependent |
restricted | Sensitive operations | Yes |
system | System-level tools | Cannot be disabled |
Configure tool approval in your workspace policies.
Next Steps
- Built-in Tools - Quick start guide
- Policy Enforcement - Control tool access
- A2A Protocol - Agent-to-agent communication