---
title: "Get detailed information about a specific function"
method: POST
path: "/code-mode/functions/details"
tags: ["CodeMode"]
---

# Get detailed information about a specific function

`POST /code-mode/functions/details`

## Headers

- `x-code-mode-session` string, required

## Request body

- GetFunctionDetailsInput
  - `functions` string[], required — List of functions to get details of.

## Response `200`

Function details

- GetFunctionDetailsOutput
  - `code` string, required
  - `functions` FunctionDetails[], required
    - `description` string, nullable — Function description
    - `name` string, required — Function name
    - `namespace` string, required — Namespace the function belongs in
    - `input_type` string, required — typescript input type for the function
    - `output_type` string, required — typescript output type for the function
    - `types` string, required — full typescript type definitions for input/output types

## Other responses

- `404` — Function not found
- `500` — Internal server error

---

[API](https://skmtc.dev/portofcontext/apis/pctx-agent-server-api.md) · [All operations](https://skmtc.dev/portofcontext/apis/pctx-agent-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/portofcontext/pctx-agent-server-api/revisions/d1f357cea012/schema)
