Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
22 lines
652 B
PHP
22 lines
652 B
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
|
||
namespace LIT\MCP\Abilities;
|
||
|
||
defined('ABSPATH') || exit;
|
||
|
||
/**
|
||
* A tool of the generic core that can reach another integration (lit/content-create with divi) and names what that
|
||
* call needs from it – as plain IDs, so the core imports nothing from the integration. The guard of the integration
|
||
* (DiviFeatureGate) reads the IDs; other guards ignore them.
|
||
*/
|
||
interface DeclaresRequirements
|
||
{
|
||
/**
|
||
* @param array<string, mixed> $input
|
||
* @return list<string> IDs of the capabilities the call needs for $input ([] = it stays in the core).
|
||
*/
|
||
public function requirements(array $input): array;
|
||
}
|