pressable_create_bash_bookmark
Create and save Bash or WP-CLI command bookmarks for WordPress site management through the Pressable API, enabling quick access to frequently used commands.
Instructions
Create a new Bash/WP-CLI command bookmark.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"command": "<command>",
"command_type": "<command_type>"
},
"name": "pressable_create_bash_bookmark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| description | No | ||
| command | Yes | ||
| command_type | Yes |
Implementation Reference
- tools/bookmarks.js:32-34 (handler)The handler function for 'pressable_create_bash_bookmark' that makes a POST request to the API to create a new bookmark.
handler: async (args) => { return await api.post('/bash_command_bookmarks', { bash_command_bookmark: args }); } - tools/bookmarks.js:22-31 (schema)The input schema defining the required parameters (name, command, command_type) for the 'pressable_create_bash_bookmark' tool.
inputSchema: { type: 'object', properties: { name: { type: 'string' }, description: { type: 'string' }, command: { type: 'string' }, command_type: { type: 'string', enum: ['bash', 'wp_cli'] } }, required: ['name', 'command', 'command_type'] }, - tools/bookmarks.js:19-35 (registration)The registration block for the 'pressable_create_bash_bookmark' tool within the bookmarkTools array.
{ name: 'pressable_create_bash_bookmark', description: 'Create a new Bash/WP-CLI command bookmark.', inputSchema: { type: 'object', properties: { name: { type: 'string' }, description: { type: 'string' }, command: { type: 'string' }, command_type: { type: 'string', enum: ['bash', 'wp_cli'] } }, required: ['name', 'command', 'command_type'] }, handler: async (args) => { return await api.post('/bash_command_bookmarks', { bash_command_bookmark: args }); } },