Expand description
Shared fenced-code-block scanning and tool-name hygiene.
Content-derived tool-call extraction must not treat markup inside fences
(documentation, test fixtures) or mid-prose tag mentions as executable
calls. This module is pure infrastructure used by the runloop text_tools
parsers and the skill sub-LLM textual fallback.
Constants§
- MAX_
CLEAN_ TOOL_ NAME_ LEN - Maximum accepted tool-name length for content-derived calls.
Functions§
- fence_
delimiter_ line - Classify a line as a fenced-code-block delimiter.
- find_
unfenced_ from - First byte offset of
needleat or afterfrom, outside fenced code blocks. - is_
clean_ tool_ name - Whether
rawis a clean tool identifier (not prose, not a fixture blob). - is_
dispatchable_ tool_ name - Whether
rawis safe to dispatch as a native tool name (not a prose blob). - unfenced_
byte_ ranges - Byte ranges of
textoutside fenced code blocks.