__('Get bulk offload status', 'advanced-media-offloader'), 'description' => __('Read the current or last bulk offload run without changing its queue, locks, or cancellation state.', 'advanced-media-offloader'), 'input_schema' => ['type' => ['object', 'null'], 'additionalProperties' => false], 'output_schema' => self::objectSchema([ 'status' => ['type' => 'string', 'enum' => ['idle', 'starting', 'processing', 'paused', 'cancelling', 'completed', 'cancelled', 'timeout_cleanup', 'recovered_from_stall', 'unknown']], 'run_id' => ['type' => ['string', 'null']], 'processed' => ['type' => 'integer', 'minimum' => 0], 'total' => ['type' => 'integer', 'minimum' => 0], 'errors' => ['type' => 'integer', 'minimum' => 0], 'oversized_skipped' => ['type' => 'integer', 'minimum' => 0], 'last_update' => ['type' => ['integer', 'null']], ]), ]; } protected function run(mixed $input): array { return $this->status->read(); } }