array( 'type' => 'string', 'description' => __( 'Field name (e.g. hero_title) or field key (e.g. field_abc123). The name is what you see in the ACF admin.', 'acrossai-abilities-manager' ), ), ); } protected function required_input(): array { return array( 'selector', ); } protected function output_properties(): array { return array( 'field' => array( 'type' => 'object' ), ); } protected function annotations(): array { return array( 'readonly' => true, 'destructive' => false, 'idempotent' => true, ); } protected function run( array $input ) { $target = Acf_Target::resolve( $input ); if ( is_wp_error( $target ) ) { return $target; } $selector = (string) $input['selector']; $field = Field_Repository::describe( $selector, $target ); if ( is_wp_error( $field ) ) { return $field; } return array( 'field' => $field, 'message' => sprintf( /* translators: 1: field name, 2: target description */ __( 'Read "%1$s" from %2$s.', 'acrossai-abilities-manager' ), $selector, Acf_Target::describe( $input ) ), ); } }