# Exportar un informe de investigación revisado con citas

URL canónica: https://sosoapi.ai/es/docs/mcp/research-briefs-export

`sosoapi_research_briefs_export`

Exportar el informe revisado o la variante exacta revisada como Markdown no confiable; se vuelve a verificar el acceso actual a fuentes. Requiere agent:research.

## Perfiles y transportes

Perfiles: full

Transportes: stdio, http

Elige core o full para controlar qué herramientas ve tu cliente; no cambia sus permisos. La carga de archivos locales requiere stdio y no está disponible por HTTP. Establece SOSOAPI_OUTPUT_SCHEMAS=1 para incluir esquemas de salida en la detección. Las herramientas devuelven resultados estructurados con o sin esa opción.

## Permisos y efectos secundarios

Las anotaciones ayudan a los clientes a describir una herramienta. Cada llamada sigue comprobando la autenticación, el rol, el acceso al recurso y los permisos de capacidades del usuario.

```json
{
  "readOnlyHint": false,
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": true
}
```

`/research-api/briefs/export` — agent:research; identidad de exportación estable y contenido de origen exacto revisado, regenerado y autorizado actualmente

## Campos de entrada

```json
{
  "type": "object",
  "properties": {
    "workspace_id": {
      "$ref": "#/$defs/s1"
    },
    "mutation_id": {
      "$ref": "#/$defs/s1"
    },
    "brief_id": {
      "$ref": "#/$defs/s1"
    },
    "brief_revision": {
      "$ref": "#/$defs/s0"
    },
    "variant_id": {
      "anyOf": [
        {
          "$ref": "#/$defs/s1"
        },
        {
          "type": "null"
        }
      ]
    },
    "variant_revision": {
      "anyOf": [
        {
          "$ref": "#/$defs/s0"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "workspace_id",
    "mutation_id",
    "brief_id",
    "brief_revision"
  ],
  "additionalProperties": false,
  "$defs": {
    "s0": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "s1": {
      "type": "string",
      "format": "uuid"
    }
  }
}
```

## Salida estructurada

Este esquema describe structuredContent en un resultado exitoso de herramienta. La respuesta MCP también incluye content y puede establecer isError si falla una llamada. Para publicación, consulta el resultado final de la publicación en vez de considerar una solicitud aceptada o una respuesta de texto como confirmación. La operación API enlazada explica los permisos y las reglas de reintento.

```json
{
  "type": "object",
  "properties": {
    "export": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "workspace_id": {
          "type": "string",
          "format": "uuid"
        },
        "brief_id": {
          "type": "string",
          "format": "uuid"
        },
        "brief_revision": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "variant": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "revision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "locale": {
                  "type": "string",
                  "enum": [
                    "en",
                    "zh-HK"
                  ]
                }
              },
              "required": [
                "id",
                "revision",
                "locale"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
          "format": "date-time"
        },
        "availability": {
          "type": "string",
          "enum": [
            "available",
            "stale",
            "unavailable"
          ]
        },
        "reasons": {
          "maxItems": 6,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "source_unavailable",
              "source_changed",
              "brief_changed",
              "variant_changed",
              "draft_changed",
              "draft_unavailable",
              "not_reviewed"
            ]
          }
        },
        "filename": {
          "type": "string",
          "maxLength": 100
        },
        "media_type": {
          "type": "string",
          "const": "text/markdown"
        },
        "text": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 3000000
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "workspace_id",
        "brief_id",
        "brief_revision",
        "variant",
        "created_at",
        "availability",
        "reasons",
        "filename",
        "media_type",
        "text"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "export"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
```

## Ejemplo de llamada a herramienta

Estos ejemplos usan valores ficticios comprobados con los esquemas. Sustituye los IDs por otros autorizados, los archivos multimedia por recursos listos y las fechas por tu hora de publicación confirmada. Comprueba la elegibilidad de la cuenta antes de enviar una escritura. Esta página no envía solicitudes API.

```json
{
  "name": "sosoapi_research_briefs_export",
  "arguments": {
    "workspace_id": "11111111-1111-4111-8111-111111111111",
    "brief_id": "30000000-0000-4000-8000-000000000003",
    "brief_revision": 1,
    "variant_id": null,
    "variant_revision": null,
    "mutation_id": "40000000-0000-4000-8000-000000000002"
  }
}
```

structuredContent

```json
{
  "export": {
    "id": "30000000-0000-4000-8000-000000000008",
    "workspace_id": "11111111-1111-4111-8111-111111111111",
    "brief_id": "30000000-0000-4000-8000-000000000003",
    "brief_revision": 1,
    "variant": null,
    "created_at": "2099-01-15T09:00:00Z",
    "availability": "unavailable",
    "reasons": [
      "source_unavailable"
    ],
    "filename": "research-brief-30000000-0000-4000-8000-000000000003.md",
    "media_type": "text/markdown",
    "text": null
  }
}
```

## Operaciones API subyacentes

- [/research-api/briefs/export](https://sosoapi.ai/es/docs/api/research-api-briefs-export)
