# thinkrank/2.10.0/includes/abilities/analysis/class-get-llms-txt-status.php

ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console &amp; Local SEO, version 2.10.0. 95 lines.

- Page: https://pluginprobe.com/plugins/thinkrank/2.10.0/code/includes/abilities/analysis/class-get-llms-txt-status.php
- Raw: https://pluginprobe.com/plugins/thinkrank/2.10.0/raw/includes/abilities/analysis/class-get-llms-txt-status.php
- Modified: 2026-08-31T10:09:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/thinkrank/2.10.0/code/includes/abilities/analysis/class-get-llms-txt-status.php#L10-L20`.

```php
<?php
/**
 * Get llms.txt status ability.
 *
 * @package ThinkRank\Abilities\Analysis
 */

declare(strict_types=1);

namespace ThinkRank\Abilities\Analysis;

use ThinkRank\Abilities\Ability_Base;
use ThinkRank\SEO\LLMs_Txt_Manager;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Reports the current status of the published llms.txt file.
 */
class Get_Llms_Txt_Status extends Ability_Base {
	/**
	 * Constructor.
	 */
	public function __construct() {
		$this->id          = 'thinkrank/get-llms-txt-status';
		$this->label       = __( 'Get ThinkRank llms.txt Status', 'thinkrank' );
		$this->description = __( 'Report the current status of the published llms.txt file, including existence, path, URL, writability, last modified time, size, and a content preview. Reports on the file written by publish-llms-txt.', 'thinkrank' );
	}

	/**
	 * {@inheritDoc}
	 *
	 * @return array<string, bool|float|string>
	 */
	public function get_annotations() {
		return [
			'readonly'      => true,
			'destructive'   => false,
			'idempotent'    => true,
			'priority'      => 1.0,
			'openWorldHint' => false,
		];
	}

	/**
	 * {@inheritDoc}
	 *
	 * @return array<string, mixed>
	 */
	public function get_input_schema() {
		return [
			'type'                 => 'object',
			'additionalProperties' => false,
			'properties'           => self::empty_properties(),
		];
	}

	/**
	 * {@inheritDoc}
	 *
	 * @return array<string, mixed>
	 */
	public function get_output_schema() {
		return [
			'type'       => 'object',
			'properties' => [
				'file_exists'      => [ 'type' => 'boolean' ],
				'published'        => [ 'type' => 'boolean' ],
				'delivery_mode'    => [ 'type' => 'string' ],
				'delivery_warning' => [ 'type' => 'string' ],
				'file_path'        => [ 'type' => 'string' ],
				'file_url'         => [ 'type' => 'string' ],
				'writable'         => [ 'type' => 'boolean' ],
				'last_modified'    => [ 'type' => [ 'string', 'integer', 'null' ] ],
				'file_size'        => [ 'type' => [ 'integer', 'null' ] ],
				'content_preview'  => [ 'type' => 'string' ],
			],
		];
	}

	/**
	 * Execute ability.
	 *
	 * @param array<string, mixed> $input Ability input payload.
	 * @return array<string, mixed>
	 */
	public function execute( $input ) {
		$manager = new LLMs_Txt_Manager();

		return $manager->get_llms_txt_status( false );
	}
}

```
