# extendify/3.2.1/src/Agent/lib/client-tools.js

Extendify, version 3.2.1. 20 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Agent/lib/client-tools.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.1/raw/src/Agent/lib/client-tools.js
- Modified: 2026-08-12T16:23:58+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/lib/client-tools.js#L10-L20`.

```javascript
import { __ } from '@wordpress/i18n';

// The backend owns their descriptions; this is what this build can run.
const IMPLEMENTED = ['acquire-image'];

export const getClientTools = () => {
	const { abilities } = window.extAgentData ?? {};
	if (!abilities?.canUploadMedia) return [];
	return IMPLEMENTED;
};

// Keeps the tool's UI from appearing in chat unexplained when the lead-in is empty.
export const getClientToolFallbackReply = (toolId) =>
	toolId === 'acquire-image'
		? __(
				'Select or generate an image below, or press Skip to continue without one.',
				'extendify-local',
			)
		: null;

```
