# extendify/3.2.1/src/Agent/abilities/options.js

Extendify, version 3.2.1. 33 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Agent/abilities/options.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.1/raw/src/Agent/abilities/options.js
- Modified: 2026-08-20T19:51:40+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/extendify/3.2.1/code/src/Agent/abilities/options.js#L10-L20`.

```javascript
import apiFetch from '@wordpress/api-fetch';
import { __ } from '@wordpress/i18n';

const path = '/extendify/v1/agent/site-options';

export const options = {
	name: 'extendify/options',
	label: __('Site settings', 'extendify-local'),
	description:
		'Read the settings this site stores, which is where WordPress, its theme and its plugins each keep their configuration. The address the site sends mail to is admin_email. Search by part of a name to find where something is kept, or name the settings to read them outright.',
	inputSchema: {
		type: 'object',
		properties: {
			search: {
				type: 'string',
				description:
					'Part of a setting name, such as the prefix a plugin puts on its own.',
			},
			name: {
				type: 'string',
				description: 'A setting to read.',
			},
			names: {
				type: 'array',
				items: { type: 'string' },
				description: 'Several settings to read at once.',
			},
		},
	},
	annotations: { readonly: true },
	execute: (input = {}) => apiFetch({ path, method: 'POST', data: input }),
};

```
