get_expediente
Retrieve a case by number or internal ID to get the full record, parties, lawyer's role, and the ID needed for related operations.
Instructions
Look up a single expediente (case) by its numeroExpediente OR idExpediente. Use this at the start of any chat about a case — it returns the full expediente record plus a partes block grouping actores, demandados, and abogados (with abogadosActor / abogadosDemandado). The ladoUsuario field tells you which side of the litigation the authenticated lawyer is on ("actor", "demandado", or null if no match). The lawyer matching the user's matrícula has esUsuario: true. If the partes fetch fails, partes is null and partesError carries a short reason. Use the returned idExpediente to drive subsequent tools (get_operaciones_expediente, get_adjuntos_expediente).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idExpediente | No | Internal expediente ID | |
| numeroExpediente | No | Case number (e.g. '10013066') |