# willo_get_function

> The current source of a deployed Edge Function, as a window of lines (mirrors willo_read_file's offset/limit), with its source_sha256…

Generated from Willo's code at each release.

Source: https://www.willo.ai/docs/reference/mcp-tools/willo_get_function

**Read an Edge Function.** The current source of a deployed Edge Function, as a window of lines (mirrors willo_read_file's offset/limit), with its `source_sha256` — willo_edit_function, and willo_deploy_function replacing it, take that value. Free, read-only.

## Access

- **Token**: read or read + act.
- **Approval**: Never. This tool only reads.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | yes | The function's slug. |
| `offset` | integer ≥ 1 | no | First line to return (1-based). |
| `limit` | integer ≥ 1 | no | How many lines to return. |

## Related

- [All MCP tools](https://www.willo.ai/docs/reference/mcp-tools)
- [Error codes](https://www.willo.ai/docs/reference/errors)
- [Draft and live](https://www.willo.ai/docs/ai-agents/draft-and-live)
