puter.workers.get()
Gets the information for a specific worker.
puter.workers.get(workerName)
workerName
(String)(Required)
The name of the worker to get the information for.
A Promise
that resolves to the worker's information as an object.
Basic Usage
// Get a worker's information
try {
const workerInfo = await puter.workers.get('my-api');
console.log(`Worker information: ${JSON.stringify(workerInfo, null, 2)}`);
} catch (error) {
console.error('Worker not found:', error.message);
}