---
title: "get_script"
description: "Get the script"
canonical: "https://poddub.com/docs/agents/tools/get_script"
last-updated: "2026-10-29"
---

# get_script

Get the script

Shows the latest version of an episode's script: its turns, its chapters and whether it was approved. Any member who can see the episode can use it, and every change to the script names the version it read here. It never shows a script before poddub has written one.

## What the server says

The description an agent is given, word for word. This tool only reads; it changes nothing.

> The script's latest version, with its turns, chapters and approval. Every edit names the version it read; script_not_found while the episode is still scripting.

## Input

| Field       | Type | Required | What it takes                                                               |
| ----------- | ---- | -------- | --------------------------------------------------------------------------- |
| `episodeId` | text | yes      | not empty; The episode's id, as list_episodes or create_episode answers it. |

## Refusals

A refusal comes back as the tool's result, marked as an error, with the code and what explains it.

| Code                | What it means                                              |
| ------------------- | ---------------------------------------------------------- |
| `episode_not_found` | No such episode among the ones the person can see.         |
| `script_not_found`  | The episode has no script yet: poddub is still writing it. |

Every tool can also answer `rate_limited` and `not_a_member`: see [Limits](/docs/agents/limits) and [Keys](/docs/agents/keys).
