Development
Genera meta etiquetas Open Graph para compartir en redes sociales y fragmentos enriquecidos
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/open-graph-generator' \
-H 'Content-Type: application/json' \
-d '{"title":"Enter page title...","description":"Enter page description (recommended: 150-200 characters)","url":"https://example.com/page","imageUrl":"https://example.com/image.jpg (recommended: 1200x630px)","type":"website","siteName":"Your Website Name","locale":"en_US","includeTwitterCard":true,"twitterUsername":"@yourusername (without @)","includeFacebook":true,"includeLinkedIn":false,"includeBasicMeta":true,"additionalProperties":"key:value, key:value (e.g., og:audio:audio.mp3, article:published_time:2024-01-01)"}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/open-graph-generator| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| title | text | Sí | — |
| description | textarea | No | — |
| url | text | No | — |
| imageUrl | text | No | — |
| type | select | No | — |
| siteName | text | No | — |
| locale | text | No | — |
| includeTwitterCard | checkbox | No | — |
| twitterUsername | text | No | — |
| includeFacebook | checkbox | No | — |
| includeLinkedIn | checkbox | No | — |
| includeBasicMeta | checkbox | No | — |
| additionalProperties | textarea | No | — |
Resultado de texto
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-open-graph-generator": {
"name": "open-graph-generator",
"description": "Genera meta etiquetas Open Graph para compartir en redes sociales y fragmentos enriquecidos",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=open-graph-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "open-graph-generator",
"arguments": {
"title": "Enter page title...",
"description": "Enter page description (recommended: 150-200 characters)",
"url": "https://example.com/page",
"imageUrl": "https://example.com/image.jpg (recommended: 1200x630px)",
"type": "website",
"siteName": "Your Website Name",
"locale": "en_US",
"includeTwitterCard": true,
"twitterUsername": "@yourusername (without @)",
"includeFacebook": true,
"includeLinkedIn": false,
"includeBasicMeta": true,
"additionalProperties": "key:value, key:value (e.g., og:audio:audio.mp3, article:published_time:2024-01-01)"
}
}
}¿Dudas o problemas? Contacta con [email protected]