LocalShellCallItem - TypeScript SDK

LocalShellCallItem type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

A local shell command execution call

Example Usage

1import { LocalShellCallItem } from "@openrouter/sdk/models";
2
3let value: LocalShellCallItem = {
4 action: {
5 command: [
6 "ls",
7 "-la",
8 ],
9 env: {
10 "PATH": "/usr/bin",
11 },
12 type: "exec",
13 },
14 callId: "call-abc123",
15 id: "shell-abc123",
16 status: "completed",
17 type: "local_shell_call",
18};

Fields

FieldTypeRequiredDescriptionExample
actionmodels.LocalShellCallItemAction✔️N/A
callIdstring✔️N/A
idstring✔️N/A
statusmodels.ToolCallStatus✔️N/Acompleted
typemodels.TypeLocalShellCall✔️N/A