municode_search and municode_read tools. An assistant that uses only Ploti’s command-line tool, such as Muse, runs ploti municode search and ploti municode read, shown in the CLI tab on the right.
Find the code, then the section
Municode has its own ids, which these calls hand back to you:- Find the place’s code.
municode_searchwith astate(two letters, such asFL) and aplace(such asWinter Garden) returns the place’sclient_id. - Search it.
municode_searchwith theclient_idandtextreturns matching sections, each with anode_id. With theclient_idalone, it returns the code’s table of contents; add anode_idto open one branch of it. - Read a section.
municode_readwith theclient_idand anode_idreturns the section’s text.cursorreads further into a long section.
When Municode can’t help
Municode doesn’t publish every place’s code, and it sometimes refuses or fails a request. The assistant then searches the ordinance documents Ploti holds instead:documents_searchwith the place and a question finds the passage.documents_readopens the section.datasets_searchwithkinds["document"]shows which codes Ploti holds for a place.