Skip to documentation
Docs navigation
Docs/getColor()
Fleet Memory

getColor()

Read the worker color.

What it does

Read the worker color.

The operation follows the fleet’s memory mode and agent identity rules when selecting, storing, or transferring memory.

Signature

TypeScript
getColor(): string

Result

The requested identifier or text value.

Example

example.ts
const color = worker.getColor();