'string' ], [ 'mcp' => [ 'type' => 'resource', 'uri' => self::URI, 'public' => true, 'mimeType' => 'application/json', 'description' => __( 'Design tokens (colors, fonts, sizes) from the active kit; check before styling with variables.', 'elementor' ), ], ], fn() => current_user_can( 'edit_posts' ) ); } public function execute( $input = [] ) { $kit = Plugin::$instance->kits_manager->get_active_kit(); $variables_service = new Variables_Service( new Variables_Repository( $kit ), new Batch_Processor() ); $variables_payload = $variables_service->load(); $data = $variables_payload['data'] ?? []; return wp_json_encode( [ 'variables' => (object) $data, 'total' => count( $data ), 'watermark' => $variables_payload['watermark'] ?? null, ] ); } }