Slice
v0.15.2Sandboxed TypeScript and JavaScript for AI agents: run locally with npx or hosted on Slice Cloud.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
slice_eval_ts
Execute untrusted TypeScript/JavaScript inside a sub-microsecond OCap/SES Slice MicroVM sandbox
| Parameter | Type | Description |
|---|---|---|
code * | string | TypeScript or JavaScript source code to evaluate |
allowEnv | string | array | Optional allowed environment variable key(s) attenuated against server grants |
allowExec | string | array | Optional allowed subprocess binary(ies) attenuated against server grants |
allowExt | string | array | Optional allowed host extension(s) or method(s) (e.g. 'store' or 'store.get') attenuated against server grants |
allowNet | string | array | Optional allowed network host(s) attenuated against server grants |
allowPrivateNetworks | boolean | Optional opt-in for DNS hostnames resolving to private/loopback IPs (attenuated against server --allow-private-networks; cloud metadata remains unconditionally blocked) |
allowRead | string | array | Optional allowed VFS read prefix(es) attenuated against server grants |
allowWrite | string | array | Optional allowed VFS write prefix(es) attenuated against server grants |
artifacts | boolean | When true, mounts an empty in-memory virtual /artifacts directory and returns files written there as MCP image/resource/resource_link content blocks (Ring 4 DLP scanned) |
auditSecret | string | array | Optional secret(s) to guard against egress leakage |
auditSecrets | string | array | Optional array of secrets to guard against egress leakage |
checkpoints | boolean | Whether guest Slice.checkpoint() / Slice.restore() calls are allowed (attenuated against server grants) |
deterministicSeed | integer | Optional deterministic seed for Math.random() and Date.now() |
fuel | integer | Optional CPU instruction fuel budget, attenuated against the server --fuel ceiling |
maxCheckpoints | integer | Maximum number of guest checkpoints allowed during evaluation (attenuated against remaining server --max-checkpoints quota) |
memory | integer | Optional memory ceiling in bytes, attenuated against the server --memory ceiling |
memoryBytes | integer | Optional memory ceiling in bytes (alias for memory), attenuated against the server --memory ceiling |
virtualMounts | string | array | Optional virtual-only in-memory VFS mount prefix(es) attenuated against server grants |
slice_kv_get
Read a key from the zero-copy sharded Slice.kv store
| Parameter | Type | Description |
|---|---|---|
key * | string |
slice_kv_set
Write a key-value pair to the zero-copy sharded Slice.kv store
| Parameter | Type | Description |
|---|---|---|
key * | string | |
value * | string |
slice_checkpoint
Create or restore an in-memory VFS + KV state snapshot for Tree-of-Thought branching
| Parameter | Type | Description |
|---|---|---|
action * | string | |
snapshot_id | integer |