# WorkbookCommand Interface

> WorkbookCommand interface in the TX Sheet Control TypeScript API for Node.js: Compatibility worker command for active-sheet operations.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > WorkbookCommand Interface
- **345 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcommand/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcommand/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcommand/llms-full.txt

---

Compatibility worker command for active-sheet operations; new document code uses worksheet-bound handles.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [args](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcommand/args-property/llms-full.txt) | The args value of WorkbookCommand. |
| [method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcommand/method-property/llms-full.txt) | The method value of WorkbookCommand. |

### Examples

Pass the WorkbookCommand value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```typescript
import type { WorkbookCommand } from '@txtextcontrol/tx-sheet-control-server';

function inspectWorkbookCommandMethod(workbookCommand: WorkbookCommand) {
    const value = workbookCommand['method'];
    console.log('WorkbookCommand.method', value);
}
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## In This Section

- [WorkbookCommand.args Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcommand/args-property/llms-full.txt): WorkbookCommand.args property in the TX Sheet Control TypeScript API for Node.js, with its type unknown[] | undefined and a TypeScript example.
- [WorkbookCommand.method Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcommand/method-property/llms-full.txt): WorkbookCommand.method property in the TX Sheet Control TypeScript API for Node.js, with its type WorkbookOperation and a TypeScript example.

---

## Nearby

- **Previous:** [WorkbookChange.source Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookchange/source-property/llms-full.txt)
- **Next:** [WorkbookCommand.args Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookcommand/args-property/llms-full.txt)
