Fleet Memory
getWorker()
Find a worker by color.
What it does
Find a worker by color.
The operation follows the fleet’s memory mode and agent identity rules when selecting, storing, or transferring memory.
Signature
TypeScript
getWorker(color: string): WorkerAgent | undefinedParameters
color (string) — Required input for this operation.Result
The requested identifier or text value.
Example
example.ts
const blue = fleet.getWorker("blue");